• Advertisement
Sign in to follow this  

SDL Cursor color

This topic is 4307 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is there any way I can keep the default mouse cursor from turning black when it is over my SDL window? I tried hiding it before drawing, and than making it visible again. I've tried forcing a cursor refresh by sending NULL to SDL_SetCursor. Am I just going to have to make a white cursor and override the default one?

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Am I just going to have to make a white cursor and override the default one?


Yes because SDL uses the Mac-OS style cursor hardcoded in for it's default cursor (see default_cursor.h in the SDL source), so the only way to use a regular Window's style cursor is to make that custom one yourself. You can do that or just hide the cursor and make your own bitmap styled one using a SDL_Surface instead (which is what you have to do if you want a custom cursor that supports color).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement