[SDL] Cursor shenanigans

Trevor Agnitti trevor at lackeyccg.com
Mon Aug 7 11:51:42 PDT 2006


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
And this resulted in the messed up cursor pictured in this shot:
http://www.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

And here is the resulting slightly messed up cursor:
http://www.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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060807/838bbe97/attachment.html 


More information about the SDL mailing list