[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Some problems with the pygame.draw.line function?
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] Some problems with the pygame.draw.line function?
- From: Luke Paireepinart <rabidpoobear@xxxxxxxxx>
- Date: Mon, 02 Oct 2006 08:30:35 -0500
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Mon, 02 Oct 2006 09:30:44 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=kDVco/7rYYfpXe3Djx6UOF3FQflmHHCEFxtN+M/JBQm90rfud1XSgxg7gulmJM1Og5S/O6LkkKV8qlfzIMAMBSgCoDzcvg9FxzzVDgCn7lEAr85Lk7W7qHxB/k01qB4aYGd0jfR3jWXih556PBu7dcOvAfU7qG6yLKvxMQCqRME=
- In-reply-to: <200610021626.09964.tprimke@interia.pl>
- References: <200610021626.09964.tprimke@interia.pl>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- User-agent: Thunderbird 1.5.0.7 (Windows/20060909)
Is this some bug in the pygame.draw.line function, or perhaps in docs? Am I
doing something wrong, or there's something I don't understand?
Yes, there's a bug in pygame.draw.line.
Someone's already commented on this in the online pygame docs.
their solution was:
"
temprect = (pygame.draw.line(screen,color,firstpos,newpos,thick))
temprect.inflate_ip(thick*2,thick*2)
dirty.append(temprect)
"
I don't know if this is fixed in 1.8 or not, but i suspect it is.
By the way,
Thanks for giving lots of info about your testing of the function.
I've seen people just claim they've found a bug without proof
and it starts a big fight.
HTH,
-Luke
Best regards,
Tomek