comparison tools/rect_drawer.py @ 523:08dbb7f3a34d

Fix calls to draw to match recent changes
author Neil Muller <neil@dip.sun.ac.za>
date Wed, 08 Sep 2010 00:45:06 +0200
parents d143947690d9
children a91cb4bffd5d
comparison
equal deleted inserted replaced
522:92782d1ca7be 523:08dbb7f3a34d
242 self.do_unzoomed_draw(surface) 242 self.do_unzoomed_draw(surface)
243 243
244 def do_unzoomed_draw(self, surface): 244 def do_unzoomed_draw(self, surface):
245 if self.state.current_detail: 245 if self.state.current_detail:
246 if self.draw_things: 246 if self.draw_things:
247 self.state.draw_detail(surface, None) 247 self.state.current_detail.draw(surface, None)
248 else: 248 else:
249 self.state.current_detail.draw_background(surface) 249 self.state.current_detail.draw_background(surface)
250 else: 250 else:
251 if self.draw_things: 251 if self.draw_things:
252 self.state.draw(surface, None) 252 self.state.current_scene.draw(surface, None)
253 else: 253 else:
254 self.state.current_scene.draw_background(surface) 254 self.state.current_scene.draw_background(surface)
255 if self.mode == 'draw' and self.start_pos and self.draw_rects: 255 if self.mode == 'draw' and self.start_pos and self.draw_rects:
256 rect = pygame.rect.Rect(self.start_pos[0], self.start_pos[1], 256 rect = pygame.rect.Rect(self.start_pos[0], self.start_pos[1],
257 self.end_pos[0] - self.start_pos[0], 257 self.end_pos[0] - self.start_pos[0],