Mail Archives: djgpp/1999/06/06/17:05:32
Does scare_mouse() just hide the mouse pointer?
The key to it is, to get your screen update monolithic. You want it
all done before the graphics card starts to draw the screen. Are you
taking a long time to draw the screen while the mouse is hidden? It
could be, that by the time you've drawn your stuff and re-enabled the
mouse, the raster has gone past that part of the screen and your mouse
pointer has missed it's chance to appear.
Draw your screen to a buffer, hide the mouse, then wait for the
vertical blank, then blit the buffer to the screen, then show the
mouse, and it should work fine.
Alternatively, hide the mouse and don't bother re-showing it, and just
draw your own mouse sprite.
------------------------------------------------------------------------
D O N ' T V O T E M P ' S A R E A L L C R O O K S
http://www.greenaum.demon.co.uk/
Protect privacy, boycott Intel: http://www.bigbrotherinside.org
- Raw text -