- changed status to resolved
compiled cursor shows white as black and black as white.
== Thorbrian, 2008-02-22 21:23:50 -0800
{{{ originally reported by inahe to the mailing list.
attached is a script that reproduces the problem. }}}
== Thorbrian, 2008-02-22 21:24:35 -0800
{{{ Created attachment 4 Test case }}}
Attachments: [[http://www.pygame.org/old_bug_attachments/4/CursorColorSwap.py| CursorColorSwap.py]]
== illume, 2009-05-27 00:56:50 -0700
{{{ Bug confirmed.
Changing: cursor = SDL_CreateCursor (anddata, xordata, w, h, spotx, spoty); to: cursor = SDL_CreateCursor (xordata, anddata, w, h, spotx, spoty);
in mouse.c just makes the cursor all black.
A test needs to be written for :pygame.mouse.set_cursor: and also for "pygame.cursors.compile"
Likely to be pygame.cursors.compile I think...
Documentation here for SDL_CreateCursor: http://sdl.beuc.net/sdl.wiki/SDL_CreateCursor }}}
== Chaitanya Talnikar, 2010-03-29 05:32:01 -0700
{{{ In the SDL_CreateCursor documentation, it is given that white is 0 and black is 1, so in the compile function in cursors.py the following line fillitem = fillitem | 1 should come in the black section of the if block and not in the white section. This would set the colours right. }}}
== Chaitanya Talnikar, 2010-03-29 05:44:41 -0700
{{{ Created attachment 32 Patch for cursors.py }}}
Attachments: [[http://www.pygame.org/old_bug_attachments/32/cursors.patch| cursors.patch]]
Comments (2)
-
-
- removed version
Removing version: svn (automated comment)
- Log in to comment
cursors.compile got black and white mixed up for making cursors.
Thanks to Chaitanya Talnikar for the patch.
Fixes
#8→ bf27f25540f4