-
Minimize a DD game
Hey everyone I guess this one is one for Zaei, but everyone else is welcome too
I just read through some old code I wrote and found some surface restore methods... (Ddraw 7)
so I thought I put those so the game will be able to continue after beeing send to background (it's ddraw fullscreen) I could not check though since it did not let me push it to background...
What do I need to do to make my DD games able to be minimized and still work after maximizing them again?
-
You have to restore the surfaces, see the DDraw sample coming with the SDK for further details :)
-
You'll have to load them all from file again too, unless you have them in memory ;)
-
and if I do so the game wont crash?
-
Mmm, is it crashing when you minimise it or when you restore it?
-
well why debugging it will crash on the next blt command....
if compiled the programs don't even care to go to background... or if I force them the hard way they won't come back either :eek: