delorie.com/archives/browse.cgi | search |
Xref: | news2.mv.net comp.os.msdos.djgpp:7031 |
From: | bdarnell AT vnet DOT net (Ben Darnell) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Allegro 2.1 mouse range bug & fix |
Date: | Fri, 09 Aug 1996 19:09:36 GMT |
Organization: | Vnet Internet Access, Inc. |
Lines: | 25 |
Message-ID: | <4ug2f3$e6o@ralph.vnet.net> |
NNTP-Posting-Host: | vts-char3-s29.vnet.net |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
In Allegro 2.1, set_mouse_range is not called correctly by install_mouse, which tends to trap your mouse in the corner of the screen. There are two ways to solve this. A: call set_mouse_range yourself in every program, or B: in allegro/src/mouse.c move the mouse_installed = TRUE; line before the call to _set_mouse_range allegro/src/mouse.c lines 473-476: ---------------------------------- _set_mouse_range(); /* _set_mouse_range does nothing if mouse_installed==FALSE */ _add_exit_func(remove_mouse); mouse_installed = TRUE; /* move this line */ ---------------------------------- Recompile with this change and the mouse range will automatically be set to the entire screen when the mouse is installed. __ __ /> /_ /| / /\ /| /> /| / /_ / / /> /_ / |/ /_/ /-| / \ / |/ /_ /_ /_ http://users.vnet.net/bdarnell bdarnell AT vnet DOT net
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |