Jump to content
  • Advertisement
Sign in to follow this  
da_cobra

alt-tab = gray screen

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

Hiya :), first of all : I already searched the forum, but didn't find a solution to my problem : I'm using DirectGraphics with sprites to make a pong clone. I'm running my application in a window. When I alt-tab in and out of my application the inside of my window is gray and stays that way until I press alt-F4. I checked if I have a lost my devices this way :
rslt=g_pDevice->TestCooperativeLevel() ;

if (FAILED(rslt))
{
	if (rslt == D3DERR_DEVICENOTRESET)
        {
                restore my DX-stuff
But it seems that I do not lose my devices, so my DX-stuff isn't getting restored. Maybe some1 else have an idea why my screen is gray? thanx in advance for any response... edit : testcooperativelevel() returns S_OK!

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!