[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] BUG: cursor.compile reads white as black and black as white.



Windows XP SP2
Python 2.5.1
pygame 1.7.1release

the following code illustrates this problem:

-------

import pygame
pygame.init()

arrow1data = (
" .              ",
".X.             ",
".XX.            ",
".XXX.           ",
".XXXX.          ",
".XXXXX.         ",
".XXXXXX.        ",
".XXXXXXX.       ",
".XXXXXXXX.      ",
".XXXXX...       ",
".XX.XX.         ",
".X. .XX.        ",
" .  .XX.        ",
"     .XX.       ",
"     .XX.       ",
"      ..        ",
)

screen = pygame.display.set_mode((800,600))

arrow1 = ((16,16),(0,0))+pygame.cursors.compile(arrow1data, black="X", white=".", xor="o")
pygame.mouse.set_cursor(*arrow1)

while 1: pygame.event.pump()

-------

this should make a black cursor with a white outline; it makes a white cursor with a black outline.