# HG changeset patch # User Neil Muller # Date 1282993360 -7200 # Node ID e5f3a97ee8122f877e28076e1b58675c0c4c1f5b # Parent c295b06b27f88b08aa932bc93a7faece476a65a7 Fix rect drawing bug diff -r c295b06b27f8 -r e5f3a97ee812 tools/rect_drawer.py --- 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: