changeset 196:b63ecd5b9a45

Unbeak helper
author Neil Muller <neil@dip.sun.ac.za>
date Thu, 26 Aug 2010 08:27:29 +0200
parents c56a0170f0cb
children 640044d7ddda
files tools/rect_drawer.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tools/rect_drawer.py	Thu Aug 26 08:38:06 2010 +0200
+++ b/tools/rect_drawer.py	Thu Aug 26 08:27:29 2010 +0200
@@ -81,7 +81,7 @@
         self.end_pos = None
 
     def draw(self, surface):
-        self.state.draw(surface)
+        self.state.draw(surface, None)
         if self.mode == 'draw' and self.start_pos:
             rect = pygame.rect.Rect(self.start_pos[0], self.start_pos[1],
                     self.end_pos[0] - self.start_pos[0],
@@ -144,7 +144,7 @@
     pygame.display.init()
     pygame.font.init()
     display = pygame.display.set_mode((1000, 600))
-    state = initial_state(None)
+    state = initial_state()
     try:
         state.set_current_scene(sys.argv[1])
         state.do_check = None