Displaying mouse cursor

I’m developing a SDL application and I’ve found the following problem:

I want the mouse cursor showing, but when I switch to fullscreen, it is
only displayed when moving. If I leave the cursor quiet, it disappears
from the screen. It’s as if I’ve to call some function to redraw the
mouse cursor after redrawing each frame. Is there such a function?

And, yes, I’ve included this line:

SDL_ShowCursor(SDL_ENABLE);

Any ideas?

Ops! I forgot: I’m running my application under Windows ME.> I’m developing a SDL application and I’ve found the following problem:

I want the mouse cursor showing, but when I switch to fullscreen, it
is only displayed when moving. If I leave the cursor quiet, it
disappears from the screen. It’s as if I’ve to call some function to
redraw the mouse cursor after redrawing each frame. Is there such a
function?

And, yes, I’ve included this line:

SDL_ShowCursor(SDL_ENABLE);

Any ideas?


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Ops! I forgot: I’m running my application under Windows ME.

I’m developing a SDL application and I’ve found the following problem:

I want the mouse cursor showing, but when I switch to fullscreen, it
is only displayed when moving. If I leave the cursor quiet, it
disappears from the screen. It’s as if I’ve to call some function to
redraw the mouse cursor after redrawing each frame. Is there such a
function?

And, yes, I’ve included this line:

SDL_ShowCursor(SDL_ENABLE);

Any ideas?

In my experience using the system cursor isn’t very reliable in full
screen. Unless anyone else knows a magic fix for this, I would suggest
that the best solution is for you to draw the mouse pointer yourself.On Thu, 2003-01-02 at 06:07, Santi Onta??n wrote:


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Jimmy <@Jimmy>
Jimmy’s World.org
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20030102/122df28c/attachment.pgp

In my experience using the system cursor isn’t very reliable in full
screen. Unless anyone else knows a magic fix for this, I would suggest
that the best solution is for you to draw the mouse pointer yourself.

Yep. It’s a known problem. The best solution is to either pass SDL_SWSURFACE
instead of SDL_HWSURFACE when setting the video mode, or draw the cursor from
your application.

-Sam Lantinga, Software Engineer, Blizzard Entertainment