[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: incorrect rect behavior... (was : [pygame] strange rect behavior...)
- To: pygame-users@xxxxxxxx
- Subject: Re: incorrect rect behavior... (was : [pygame] strange rect behavior...)
- From: Patrick Mullen <saluk64007@xxxxxxxxx>
- Date: Fri, 14 Oct 2005 10:52:49 -0700
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Fri, 14 Oct 2005 13:53:03 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=AukLauliQzi+cIKm6wV0MLt2RJ4hwBqTDPW4rfMBXwIB8oPvdttVWY1RDhq2mKMaOz5CKUbNOwfNaea+rQsKRSFMjjegronTKsd196eMF7wl47h05AG/SrJdiEztnEZ/eG6xwlrVk5XmEXvSmFaZNVOG1eXrTNQ1cB/3vH12tgA=
- In-reply-to: <43490C07.7030600@free.fr>
- References: <4348ED55.4050607@free.fr> <43490C07.7030600@free.fr>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
I thought that setting left and right will move the rect and not
change the size? In that case the above behavior is correct. When
you set rect.right to 50 it moved the rectangle left so the right edge
was at 50. So the size is still 100 and the left edge is now at -50
so that the size is the same.
But I don't use rect's much so I could be wrong.