Skip to main content
GameDev.net gamedev.net
🔒 Locked

SDL - window switching.

Started by Specchum Mar 4, 2007 at 10:55 PM 1 replies 900+ views
Original Post
Specchum
Specchum
What is the recommended way to handle a task switching/minimize/restore event under windows when using SDL under OpenGL? I ask because when my game is running in full screen, task switching causes it to minimize to task bar but there's no way to restore it (or at least I can't figure out how). Secondly, when in windowed mode, minimizing and restore brings the game back but some of the textures are lost. I know I have to reload the textures in such cases but how do I capture the restore event?
"There is no dark side of the moon." - Pink Floyd
Kylotan
Kylotan
I believe it's the blit call that returns a special error value when you need to restore that surface.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.