Here is where my problem occurs. When iconizing the application (in HW-mode)
the pygame crashes and says that "pygame.error: Surface was lost". I believe
that this is the normal behaviour and when losing/gaining focus the program
should reaquire the old mode somehow. I have managed to use ACTIVEEVENT and
"pygame.display.toggle_fullscreen()" so that it is ok to iconize the
application, but when toggling back to fullscreen the program crashes with
that surface lost-error. What is the "normal" thing to do in order to
prevent those crashes? Any example would be nice.
the "lost surface" is the achilles heel of directx. directx will
destroy your surfaces automatically and not tell you about it until
later you try to actually use the surface (Thanks MS!)