Archived

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

Shambles

Wont draw after minimize

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