[pypy-svn] r33535 - pypy/dist/pypy/translator/tool/pygame

fijal at codespeak.net fijal at codespeak.net
Sun Oct 22 14:51:52 CEST 2006


Author: fijal
Date: Sun Oct 22 14:51:51 2006
New Revision: 33535

Modified:
   pypy/dist/pypy/translator/tool/pygame/graphdisplay.py
Log:
Stupid hack to avoid minimising the window. This is totally insane, but works


Modified: pypy/dist/pypy/translator/tool/pygame/graphdisplay.py
==============================================================================
--- pypy/dist/pypy/translator/tool/pygame/graphdisplay.py	(original)
+++ pypy/dist/pypy/translator/tool/pygame/graphdisplay.py	Sun Oct 22 14:51:51 2006
@@ -58,7 +58,6 @@
         self.height = h
         self.screen = pygame.display.set_mode((w, h), HWSURFACE|RESIZABLE, 32)
 
-
 class GraphDisplay(Display):
     STATUSBARFONT = os.path.join(autopath.this_dir, 'VeraMoBd.ttf')
     ANIM_STEP = 0.07
@@ -634,6 +633,10 @@
         # short-circuit if there are more resize events pending
         if self.peek(VIDEORESIZE):
             return
+        # XXX sometimes some jerk are trying to minimise our window,
+        # discard such event
+        if event.size[1] == 5:
+            return
         self.resize(event.size)
         self.must_redraw = True
 



More information about the Pypy-commit mailing list