Mail Archives: djgpp/1997/04/01/18:08:26
Jeff Bachtel writes:
>If I show_mouse(s), where s is an offscreen buffer, do the normal
>warnings not to write to the buffer while the mouse cursor is visible
>still apply? (ie can I draw to s whenever I want, and blit s to the
>screen when I want)
Using an offscreen buffer avoids the problems with unexpected changes to
the SVGA banking registers, but doesn't help with the issue of your
drawing overwriting the mouse pointer. If you are doing your drawing on
an offscreen buffer, a better approach would be:
[mouse is off at this point]
draw some cool graphics
show mouse
blit to screen
hide mouse
repeat
Zero flicker, and nothing will ever get overwritten. The only potential
trouble is that if the mouse moves at the exact same instant as the blit
is taking place, a distorted pointer could get displayed for that frame.
This can be fixed by setting "freeze_mouse_flag = TRUE" just before you
do the blit.
--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.
- Raw text -