[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] surface.get_flags() and pygame.FULLSCREEN
Brian Fisher wrote:
Sounds like it doesn't work the way you were hoping, but sounds like
it's working perfectly to me. The display is still in fullscreen mode
the entire time, it just happened to not be the active display for a
while (your described test case wouldn't be any different than
alt-tabbing away, In my opinion)
The thing is that pygame (or SDL?) switches the display to windowed mode
if it loses focus, and it takes a few seconds for it to regain
fullscreen mode (sometimes it doesn't regain it at all, in my experience).
So yes, it does lose focus, but when it regains focus, it's still in a
windowed state, and for this the surface should not have flags
containing pygame.FULLSCREEN.
--
Kindest regards, Jørgen P. Tjernø.