[SDL] SDL Digest, Vol 28, Issue 7
Trevor Agnitti
trevor at lackeyccg.com
Mon Aug 7 12:57:20 PDT 2006
Oops. Sorry about the double-post.
>> I can't seem to get the SDL_CreateCursor code working correctly.
> On what platform is this?
Mac OSX, but the same exact problem occurs when I compiled it on
windows.
>> Does anyone have a link to some code that actually demonstrates it
>> correctly?
> http://libsdl.org/cgi/viewvc.cgi/branches/SDL-1.2/test/testcursor.c?
> view=markup
> -Christian
I tried those 3 examples from that page.
SDL_CreateCursor((Uint8 *)cursor_data, (Uint8 *)cursor_mask,16, 16,
8, 8);
produced a weird pattern like a square with the bottom right quadrant
missing. It had weird transparency too.
cursor[2] = SDL_CreateCursor(small_cursor_data, small_cursor_mask,8,
11, 3, 5);
resulted in a weird circle with a dot in the center and a squiggle on
the top and bottom of it. It looked weird, but I think that may have
been what it was supposed to look like.
cursor[1] = create_arrow_cursor();
This resulted in the exact same image I got before:
http://www.lackeyccg.com/images/cursor2.jpg
What could possibly cause this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060807/013d9484/attachment.htm
More information about the SDL
mailing list