Show Cursor in fullscreen

I’m using libsdl on a win32 platform, and i can’t view the mouse cursor when in fullscreen. It works in windowed mode but not in fullscreen mode.---------------------------------------------------------------------------------------------------------------------------
SDL_Init (SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER);
SDL_ShowCursor(SDL_ENABLE);
lpPrimary = SDL_SetVideoMode (800, 600, 16, SDL_HWPALETTE | SDL_HWSURFACE |
SDL_DOUBLEBUF | SDL_FULLSCREEN);

I’d like to port the program to linux so it’s not really a problem if it’s a win32 specific bug.

Thanks for your help

It has been tested on a voodoo5 and on a geforce4, both support hardware cursor in directdraw.

        I'm using libsdl on a win32 platform, and i can't view

the mouse cursor when in fullscreen. It works in windowed mode but
not in fullscreen mode.
[…]
It has been tested on a voodoo5 and on a geforce4, both support
hardware cursor in directdraw.

AFAIK, some targets do have problems with h/w cursor in fullscreen,
but I don’t know what goes wrong, or why.

Either way, it’s probably a better idea to render your own cursor in
fullscreen modes. It’s portable, works without h/w cursors, and you
have full control over the cursor’s appearance.

The only problem is that the cursor movement gets restricted to the
full screen frame rate. Current versions of SDL don’t support
rendering directly into the display buffer of a double buffered h/w
surface screen, so it’s hard to work around this. You can "sort of"
do it by using a single buffered screen (or a “fake” double buffered
screen with a s/w surface); just blit (or SDL_UpdateRect()) the area
around the cursor after rendering it.

//David Olofson - Programmer, Composer, Open Source Advocate

.- The Return of Audiality! --------------------------------.
| Free/Open Source Audio Engine for use in Games or Studio. |
| RT and off-line synth. Scripting. Sample accurate timing. |
`-----------------------------------> http://audiality.org -’
http://olofson.nethttp://www.reologica.se —On Tuesday 13 May 2003 15.00, Benoit Delayen wrote: