Jump to content
  • Advertisement
Sign in to follow this  
BrainScan

Fullscreen problems with D3D9 Managed

This topic is 4794 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've been working on this problem for awhile now and have come to the point where I feel like I’ve tried everything. My problem relates to Direct3D fullscreen mode in managed code. I'm using the April 2005 version of the SDK and VB.NET 2003. I'm trying to get the device to reset properly when task switching for example alt+tabbing. Everything works fine when I alt+tab out of my app, the device becomes lost and I stop rendering. However, when I try to return to the app, the CheckCooperativeLevel method never seems to return DeviceNotReset. It just keeps returning DeviceLost even though my app has focus. I eliminated all the things I was rendering just to see if maybe I wasn't releasing the resources properly, but that didn't help. Has anyone had any problems like this or know what could possibly be the problem? Any help would be appreciated. BrainScan

Share this post


Link to post
Share on other sites
Advertisement
I use DirectX8 but I hope it helps.
Save your app focus state in a boolean which can be properly set in the
WM_ACTIVATE window message.

In your input update function do nothing if app has no focus.
When your app regains focus, in the input function whenever using the
GetDeviceState/Data functions you will get the INPUT_LOST error, in which case you should acquire the device again, and on the next call to these functions (GetDevice...) they will work as expected.

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!