Jump to content
  • Advertisement
Sign in to follow this  
shultays

what to reset after losing focus in a fullscreen application?

This topic is 3161 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

Advertisement
All i know is that you have to reload sprites and fonts (i'm a beginner)
You can do that like this:

D3dSprite->OnLostDevice(); // Tells Direct3DSprite that d3ddev has been
// Lost and to release the memory of the sprite

d3ddev->Reset(&d3dpp); // resets d3ddev


D3dSprite->OnResetDevice(); // Reaquires the sprite memory

Share this post


Link to post
Share on other sites
You have to recreate all D3DPOOL_DEFAULT resources. They need to be released prior to reset, and then created again post-reset.

Turn on Direct3D debug output in the DirectX control panel, and then watch the 'Output' window in your debugger when you reset the device. It'll tell you if there are resources that you still need to release when you reset.

Share this post


Link to post
Share on other sites
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!