www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/11/16:49:45

Message-Id: <m0x9AS0-000S1zC@inti.edu.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT edu DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT edu DOT ar>
Organization: INTI
To: djgpp AT delorie DOT com
Date: Thu, 11 Sep 1997 18:07:11 +0000
MIME-Version: 1.0
Subject: Allegro: Bug in Allegro's (v2.2) remove_mouse function

Hi All:

The bug is very strange to hit but if you hit it is a hell to find.
The remove_mouse function doesn't set _mouse_screen so mouse screen have a 
wrong value. If after that we set the graphics mode again then set_gfx_mode 
calls to set_mouse_range and it uses the old value in _mouse_screen. 
In my program it destroyed the stack and I was unable to detect the exact 
point.
adding a line with _mouse_screen=NULL; at the end of the function all works OK.

Hope this help to anybody else, SET
------------------------------------ 0 --------------------------------
Visit my home page: http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-sot AT usa DOT net - ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019