Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Wont draw after minimize

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

My program wont draw after I minimize and then maximize in fullscreen mode. I have tried: case WM_PAINT: ValidateRect(hWnd, NULL); return 0; and: case WM_PAINT: if (GameState && Graphics.loaded) GameState->frame(); // contains drawing code return 0; in WinProc but it doesn't work. Am I doing it wrong? [edited by - Shambles on October 18, 2002 5:54:01 PM]

Share this post

Link to post
Share on other sites
Well, it sounds like you''re losing the device. If you''re using D3D 8 then look (in the docs) at:
DirectX Graphics -> Using DirectX Graphics -> Direct3D Device -> Lost Devices

Hope that helps,

John B

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!