# Cursor shenanigans

**URL:** <https://discourse.libsdl.org/t/cursor-shenanigans/13691>\
**Category:** SDL Development\
**Created:** [August 7, 2006, 6:51pm UTC](https://discourse.libsdl.org/t/cursor-shenanigans/13691 "2006-08-07T18:51:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trevor\_Agnitti](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/t/5fc32e/32.png) [@Trevor\_Agnitti](https://discourse.libsdl.org/u/Trevor_Agnitti)\
**Post date:** [August 7, 2006, 6:51pm UTC](https://discourse.libsdl.org/t/cursor-shenanigans/13691/1 "2006-08-07T18:51:42Z")

</div>

I can’t seem to get the SDL\_CreateCursor code working correctly.

I tried the sample code listed at:  
[http://www.libsdl.org/cgi/docwiki.cgi/SDL\_5fCreateCursor](http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fCreateCursor)  
And this resulted in the messed up cursor pictured in this shot:  
[![](https://lackeyccg.com/images/cursor2.jpg) ](https://lackeyccg.com/images/cursor2.jpg)

I then found some other code to make an SDL cursor, and this result  
looked a lot better, but it was still messed up a bit.

Here is the code for it:  
[http://www.lackeyccg.com/CursorCodeSnippet.txt](http://www.lackeyccg.com/CursorCodeSnippet.txt)

And here is the resulting slightly messed up cursor:  
[![](https://lackeyccg.com/images/cursor1.jpg) ](https://lackeyccg.com/images/cursor1.jpg)

Is there a bug in the SDL cursor code, or am I doing something  
incorrectly? Does anyone have a link to some code that actually  
demonstrates it correctly?

Thanks in advance.

-Trevor  
[www.lackeyccg.com](http://www.lackeyccg.com)
