Also, a common thing to do is to put a rect right next to another rect: rect2.left = rect1.right
When you do this, they will become side-by-side, and they will not overlap. Otherwise you would have to write "- 1" a lot while arranging your rects. On Mon, Jul 31, 2006 at 09:16:18AM -0700, Brian Fisher wrote: > I don't know why rect was set up that way, but one good thing about > the way right & bottom relate to width, is that right = left + width > and bottom = top + height > > On 7/31/06, Nelson, Scott <[EMAIL PROTECTED]> wrote: > >Ok, that is obviously consistent with my observed results. So, I now > >understand how it works, but could anyone shed some light as to why it > >was done this way? Is it to mirror Python's other behaviors, such as > >range(3) or slicing's [0:3]? Does SDL simply do it this way? Something > >else? > >