# SDL\_ShowCursor not working

**URL:** <https://discourse.libsdl.org/t/sdl-showcursor-not-working/12595>\
**Category:** SDL Development\
**Created:** [September 20, 2005, 1:06pm UTC](https://discourse.libsdl.org/t/sdl-showcursor-not-working/12595 "2005-09-20T13:06:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fabian\_Mathews](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/f/ecd19e/32.png) [@Fabian\_Mathews](https://discourse.libsdl.org/u/Fabian_Mathews)\
**Post date:** [September 20, 2005, 1:06pm UTC](https://discourse.libsdl.org/t/sdl-showcursor-not-working/12595/1 "2005-09-20T13:06:07Z")

</div>

ive got an SDL app in a window running opengl, when the mouse moves over my  
window, the mouse disapears. Show cursor has now affect.  
Im using the latest version of sdl (1.2).

any ideas why this could be?\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
Express yourself instantly with MSN Messenger! Download today it’s FREE!  
[http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/](http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/)

---

<div class="post-metadata">

**Author:** ![icculus](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/icculus/32/81_2.png) [@icculus](https://discourse.libsdl.org/u/icculus)\
**Post date:** [September 27, 2005, 12:16pm UTC](https://discourse.libsdl.org/t/sdl-showcursor-not-working/12595/2 "2005-09-27T12:16:26Z")

</div>

> ive got an SDL app in a window running opengl, when the mouse moves over my  
> window, the mouse disapears. Show cursor has now affect.  
> Im using the latest version of sdl (1.2).
> 
> any ideas why this could be?

What platform?

–ryan.

---

<div class="post-metadata">

**Author:** ![Doodle](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/d/9de0a6/32.png) [@Doodle](https://discourse.libsdl.org/u/Doodle)\
**Post date:** [September 27, 2005, 1:33pm UTC](https://discourse.libsdl.org/t/sdl-showcursor-not-working/12595/3 "2005-09-27T13:33:54Z")

</div>

Ryan C. Gordon wrote:

> > ive got an SDL app in a window running opengl, when the mouse moves over my  
> > window, the mouse disapears. Show cursor has now affect.  
> > Im using the latest version of sdl (1.2).
> > 
> > any ideas why this could be?
> 
> What platform?

Btw, speaking about cursors, I’ve also found an oddity, which affects  
all the supported platforms:  
I think that if SDL emulates the cursor (so, uses SW cursor), and the  
video surface is a HWSURFACE, then SDL\_UpdateRects() will not draw the  
cursor, because that branch of the ‘if’ has no logic to handle SW cursor.

Also a problem is that if the user blits directly into the screen  
surface (HW surface, again) using SDL\_UpperBlit(), then SW cursor can be  
overwritten/deleted, there is no logic to handle that.

I don’t know if these are known problems, just thought that I may note it.

Doodle
