changeset 812:2dd400a7c16d pyntnclick

Only clear working around to prevent toolbar flickering
author Neil Muller <neil@dip.sun.ac.za>
date Sun, 27 Jan 2013 16:50:04 +0200
parents a0fd258cd5d7
children 3a875256f795
files pyntnclick/tools/rect_drawer.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pyntnclick/tools/rect_drawer.py	Sun Jan 27 16:49:53 2013 +0200
+++ b/pyntnclick/tools/rect_drawer.py	Sun Jan 27 16:50:04 2013 +0200
@@ -299,7 +299,8 @@
     def draw(self, surface):
         self.do_prepare()
         if self.clear_display:
-            surface.fill(pygame.color.Color(0, 0, 0))
+            surface.fill(pygame.color.Color(0, 0, 0),
+                    pygame.Rect(0, 0, constants.screen[0], constants.screen[1]))
             self.clear_display = False
 
         if self.zoom_display: