[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] Fullscreen + Hardware surface causes crash



Hello everyone,

I have a question about setting the screen mode in Pygame, because using fullscreen mode with hardware surfaces does not work:

The following mode works:
screen_mode = pygame.FULLSCREEN;

The following mode does not:
screen_mode = pygame.FULLSCREEN | pygame.HWSURFACE | pygame.DOUBLEBUF;

The runtime error is:
File "C:\openrts\latest\openrts\client\gui\container.py", line 23, in update
for w in self.topaint:
RuntimeError: error locking surface


Source code can be found at http://svn.gna.org/viewcvs/openrts/trunk/openrts/client/main.py?rev=17&view=markup

Any help is appreciated.

--
Andreas R.
www.openrts.org