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?
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?
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:
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