Mouse cursor leaves unupdated areas in full screen mode

Hi there,
I get a strange behavior when switching my SDL application to full
screen mode. When setting the display surface as an SDL_HWSURFACE the area
under the mouse cursor bitmap (SDL’s default cursor) isn’t always updated,
leaving meaningless squares everywhere, although this doesn’t happen in
window mode. I’m running Windows2000 + an Nvidia GeForce2 MX display card.

Thanks in advance,
Mahmoud Al Gammal

Hi there,
I get a strange behavior when switching my SDL application to full
screen mode. When setting the display surface as an SDL_HWSURFACE the area
under the mouse cursor bitmap (SDL’s default cursor) isn’t always updated,
leaving meaningless squares everywhere, although this doesn’t happen in
window mode. I’m running Windows2000 + an Nvidia GeForce2 MX display card.

Yeah, this is a bug. It’s caused by you writing directly to video memory
and SDL also trying to draw the cursor using software drawing. If you
really want to use SDL_HWSURFACE, you need to hide the SDL cursor and
draw it yourself.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment