If I have a fullscreen DDraw app and the window is minimized, would I have to like completely shut down DDraw when it''s closed and bring it back from scratch again or just check everything and if it''s NULL just reload everything? Thanks
Hibiki
Wheres the any key?
find your element
at mutedfaith.com.
<º>
minimizing window
HibikiWheres the any key?www.geocities.com/dragongames123/home.html
find your elementat mutedfaith.com.<º>
find your elementat mutedfaith.com.<º>
Due to my dissapointing performance in the "You favorite GameDev member" thread I''ve decided to start pressing the flesh a bit, and what better place than here! In the Den of the Newbies!
Now then. Hmm, its been a while since I''ve used DirectX (I use SDL/OpenGL now-a-days) but I think you just check for the surface lost error message, and when that happens you do a Restore() on the surfaces. What that does is it recreates/reallocates/whatever needs to be done to the surfaces and gives them back to you. But, they''re probably gonna be blank or full of garbage, so you need to reload them.
So you don''t have to reinit DDraw or anything. Just Restore() your surfaces and reload.
Oh, and you''ll probably want to figure out a way to not start doing this until your game isn''t minimized anymore. I think its the HAS_FOCUS message or something like that (its been a while since I''ve used Windows message. Like I said, I use SDL these days). If you don''t your game will sit there and constantly restore/reload and other wacky stuff, probably slowing down everything and irritating whoever''s minimized the game in the first place.
Now then. Hmm, its been a while since I''ve used DirectX (I use SDL/OpenGL now-a-days) but I think you just check for the surface lost error message, and when that happens you do a Restore() on the surfaces. What that does is it recreates/reallocates/whatever needs to be done to the surfaces and gives them back to you. But, they''re probably gonna be blank or full of garbage, so you need to reload them.
So you don''t have to reinit DDraw or anything. Just Restore() your surfaces and reload.
Oh, and you''ll probably want to figure out a way to not start doing this until your game isn''t minimized anymore. I think its the HAS_FOCUS message or something like that (its been a while since I''ve used Windows message. Like I said, I use SDL these days). If you don''t your game will sit there and constantly restore/reload and other wacky stuff, probably slowing down everything and irritating whoever''s minimized the game in the first place.
I like the DARK layout!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement