# HG changeset patch # User Neil Muller # Date 1344087373 -7200 # Node ID cbf6d457378573ed584dfd8c2808d65ba7be567a # Parent 9a61cf88e6e8ca1eb403aec3a1eda4a271c726bc Fix bug in zooming code diff -r 9a61cf88e6e8 -r cbf6d4573785 pyntnclick/tools/rect_drawer.py --- a/pyntnclick/tools/rect_drawer.py Wed Feb 15 16:49:43 2012 +0200 +++ b/pyntnclick/tools/rect_drawer.py Sat Aug 04 15:36:13 2012 +0200 @@ -289,8 +289,8 @@ base_surface = surface.copy() self.do_unzoomed_draw(base_surface) zoomed = pygame.transform.scale(base_surface, - (constants.zoom * constants.screen[0], - constants.zoom * constants.screen[1])) + (constants.zoom * base_surface.get_width(), + constants.zoom * base_surface.get_height())) area = pygame.rect.Rect(self.zoom_offset[0], self.zoom_offset[1], self.zoom_offset[0] + constants.screen[0], self.zoom_offset[1] + constants.screen[1])