changeset 321:e5f3a97ee812

Fix rect drawing bug
author Neil Muller <neil@dip.sun.ac.za>
date Sat, 28 Aug 2010 13:02:40 +0200
parents c295b06b27f8
children 1208bb5eaf6f
files tools/rect_drawer.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tools/rect_drawer.py	Sat Aug 28 12:58:31 2010 +0200
+++ b/tools/rect_drawer.py	Sat Aug 28 13:02:40 2010 +0200
@@ -95,7 +95,6 @@
     def find_intersecting_things(self):
         """Parse the things in the scene for overlaps"""
 
-
     def find_intersecting_rects(self, d):
         """Find if any rect collections intersect"""
         # I loath N^X brute search algorithm's, but whatever, hey
@@ -184,6 +183,7 @@
             rect = pygame.rect.Rect(self.start_pos[0], self.start_pos[1],
                     self.end_pos[0] - self.start_pos[0],
                     self.end_pos[1] - self.start_pos[1])
+            rect.normalize()
             frame_rect(surface, self.rect_color, rect, self.draw_thick)
         if self.draw_rects:
             for (col, rect) in self.rects: