changeset 703:cbf6d4573785 pyntnclick

Fix bug in zooming code
author Neil Muller <neil@dip.sun.ac.za>
date Sat, 04 Aug 2012 15:36:13 +0200
parents 9a61cf88e6e8
children 506568326790
files pyntnclick/tools/rect_drawer.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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])