changeset 811:a0fd258cd5d7 pyntnclick

Correctly crop zoomed image
author Neil Muller <neil@dip.sun.ac.za>
date Sun, 27 Jan 2013 16:49:53 +0200
parents 6f38e20b1417
children 2dd400a7c16d
files pyntnclick/tools/rect_drawer.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)