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

[pygame] BUG: dirty rect from draw.line too small.



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()