comparison pyntnclick/tools/rect_drawer.py @ 685:32e554adf538 pyntnclick

Fix signatures
author Neil Muller <neil@dip.sun.ac.za>
date Mon, 13 Feb 2012 11:27:16 +0200
parents b27b5c6c54e8
children 48f68ae7d454
comparison
equal deleted inserted replaced
684:1ddafd55458a 685:32e554adf538
254 self.do_unzoomed_draw(surface) 254 self.do_unzoomed_draw(surface)
255 255
256 def do_unzoomed_draw(self, surface): 256 def do_unzoomed_draw(self, surface):
257 if self.state.current_detail: 257 if self.state.current_detail:
258 if self.draw_things: 258 if self.draw_things:
259 self.state.current_detail.draw(surface, None) 259 self.state.current_detail.draw(surface)
260 else: 260 else:
261 self.state.current_detail.draw_background(surface) 261 self.state.current_detail.draw_background(surface)
262 # We duplicate Albow's draw logic here, so we zoom the close 262 # We duplicate Albow's draw logic here, so we zoom the close
263 # button correctly 263 # button correctly
264 r = self.close_button.get_rect() 264 r = self.close_button.get_rect()
269 self.close_button.draw_all(sub) 269 self.close_button.draw_all(sub)
270 except ValueError, e: 270 except ValueError, e:
271 print 'Error, failed to draw close button', e 271 print 'Error, failed to draw close button', e
272 else: 272 else:
273 if self.draw_things: 273 if self.draw_things:
274 self.state.current_scene.draw(surface, None) 274 self.state.current_scene.draw(surface)
275 else: 275 else:
276 self.state.current_scene.draw_background(surface) 276 self.state.current_scene.draw_background(surface)
277 if self.mode == 'draw' and self.start_pos and self.draw_rects: 277 if self.mode == 'draw' and self.start_pos and self.draw_rects:
278 rect = pygame.rect.Rect(self.start_pos[0], self.start_pos[1], 278 rect = pygame.rect.Rect(self.start_pos[0], self.start_pos[1],
279 self.end_pos[0] - self.start_pos[0], 279 self.end_pos[0] - self.start_pos[0],