case SDL_ACTIVEEVENT:
if(event.active.state & SDL_APPACTIVE) {
if(event.active.gain)
gKernel->resume();
else
gKernel->pause();
}
break;
SDL window will not restore
I've added code to detect when the window lost focus (was minimized), so that I could pause the program and resume when it was restored. Debugging through it, it works fine when minimized. However, I cannot restore the window! Clicking on it doesn't do anything, and when I right-click the icon in the windows bar "restore" is grayed out. When I comment out this code, it restores fine. How come this code stops it from restoring? I was sure that I don't have to handle anything else in the event.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement