[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] BUG: cursor.compile reads white as black and black as white.
- To: pygame-users@xxxxxxxx
- Subject: [pygame] BUG: cursor.compile reads white as black and black as white.
- From: inhahe <inhahe@xxxxxxxxx>
- Date: Mon, 15 Oct 2007 18:53:55 -0400
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Mon, 15 Oct 2007 18:54:07 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=5WfjUcMcjhRC9Bktda4K4cN0Smc1el9iK6Nv+ZMqStY=; b=AxU5eFj7AwUm/FpsZnIkmzNJ9VdcJgvgxMU5uRPAFUIVHcEI5YGDznCYblJBQuufRqCrEifIEYp3+WhV4BmtWTF3SQZRSws82rH8onAM6YVHSAUZA9tTzEIiZwWwrbirm1v5TE9WtU6Wt1l0uNz5chg20MAcTyXnClYG2m2+R6o=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=AQqHlShWol/HIf+GYEHK3Pxzny+//JrOvOxEFBLOczFlXDIKOInFoE2ku0mBOPRiaIUTBtMCGwtghBTzjB8pYlcNbG9IcUVQwkQjqIussKJ8srXL2l1Sb6qUTSSmtb3tpe6PpW59StlXOLBoSaOJ9v1HvakABcRhxK3a4BYO7u0=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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.