[pypy-dev] display problem

Christian Tismer tismer at stackless.com
Sat Nov 20 17:11:37 CET 2004


Hi friends,

for somebody who knows about PyGame:

When I have the window fullscreen on Windows, switch to other
applications and come back later, I get the following exception:
"""
   File "D:\pypy\src\pypy\translator\tool\pygame\graphdisplay.py", line 
591, in run
     self.process_event(events.pop(0))
   File "D:\pypy\src\pypy\translator\tool\pygame\graphdisplay.py", line 
513, in process_event
     method(event)
   File "D:\pypy\src\pypy\translator\tool\pygame\graphdisplay.py", line 
562, in process_VideoResize
     self.resize(event.size)
   File "D:\pypy\src\pypy\translator\tool\pygame\graphdisplay.py", line 
54, in resize
     self.screen = pygame.display.set_mode((w, h), HWSURFACE|RESIZABLE, 32)
pygame.error: DirectDraw2::CreateSurface(PRIMARY): Unsupported mode
"""

My guess is that some of the mode flags are not suitable if the
screen is in full size mode. But I don't know.

ciao - chris

-- 
Christian Tismer             :^)   <mailto:tismer at stackless.com>
tismerysoft GmbH             :     Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9A     :    *Starship* http://starship.python.net/
14109 Berlin                 :     PGP key -> http://wwwkeys.pgp.net/
work +49 30 802 86 56  mobile +49 173 24 18 776  fax +49 30 80 90 57 05
PGP 0x57F3BF04       9064 F4E1 D754 C2FF 1619  305B C09C 5A3B 57F3 BF04
      whom do you want to sponsor today?   http://www.stackless.com/




More information about the Pypy-dev mailing list