Jump to content
  • Advertisement
Sign in to follow this  
Decept

Error during alt+tab in D3D8

This topic is 4830 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi I'm programming a 2D game in D3D8 and I have a problem when the game loses focus due to alt+tab (when in fullscreen of course). I know what it means when the device goes into lost state and all that. The game can actually handle alt+tab in fullscreen with no problem. The error only occurs if the game runs in the same resolution as the Windows desktop. I have confirmed this with another machine that runs a different resolution, it has the same alt+tab problem if the game runs at the same resolution as Windows. When the alt+tab occur I can see that Windows changes focus to another app, but the image from the game remains on top so I can't see anything else. But the game does no longer have focus. I had to memorize how to kill the game using the Task Manager without actually seeing it. As I said everything works just fine in any other resolution, the game gets minimized and focus is on another app. When clicking on the minimized game it pops up again and runs perfectly. Any ideas?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!