# HG changeset patch # User Neil Muller # Date 1359298193 -7200 # Node ID a0fd258cd5d7442aee2d7e4a43a034947148911f # Parent 6f38e20b1417da655d87c60cd0a7c41e4b311b72 Correctly crop zoomed image diff -r 6f38e20b1417 -r a0fd258cd5d7 pyntnclick/tools/rect_drawer.py --- a/pyntnclick/tools/rect_drawer.py Sun Jan 27 16:47:50 2013 +0200 +++ b/pyntnclick/tools/rect_drawer.py Sun Jan 27 16:49:53 2013 +0200 @@ -309,8 +309,7 @@ (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]) + constants.screen[0], constants.screen[1]) surface.blit(zoomed, (0, 0), area) else: self.do_unzoomed_draw(surface)