[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] BUG: dirty rect from draw.line too small.
- To: pygame-users@xxxxxxxx
- Subject: [pygame] BUG: dirty rect from draw.line too small.
- From: Rene Dudfield <renesd@xxxxxxxxx>
- Date: Wed, 23 Nov 2005 12:57:29 +1100
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Tue, 22 Nov 2005 20:57:34 -0500
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=aGGSLOrwTXAHopHpMywllrPV2NglokEVTLsHZSy0qcKRCCWRQvVbQMgakyuhOXxH/stW9jBMD5nfHNBv4sGLaME3sds8vD8n+Ady4T7lBBDa+V62gfl+EqaENJaT24vpVA/uMdCmAt+Lzpg85Kol7FVWBm4z8pDtlKWmQwkG0B8=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
There is a possible bug with the rect returned from draw.line().
The code below seems to show the bug. However, I haven't looked into
it too closely...
# possible line bug.
#
# BUG: dirty rect from draw.line too small.
import pygame
from pygame.locals import *
screen = pygame.display.set_mode((800, 600))
while 1:
pass
events = pygame.event.get()
dirty=pygame.draw.line(screen,(255, 0, 0),(10,600),(600,50),50)
pygame.display.update(dirty)
pygame.time.wait(1000) #or whatever the wait comand is.
pygame.display.update()