Sign in to follow this  
Jazonxyz

DX FullScreen

Recommended Posts

Why when I try to start Direct X in fullscreen mode and then diactivate the program by pressing then windows logo on the keyboard, When I try to reopen the program nothing is rendered? Here is the code I use for fullscreen mode... D3DPRESENT_PARAMETERS d3dpp; ZeroMemory(&d3dpp,sizeof(d3dpp)); d3dpp.Windowed = false; d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD; d3dpp.BackBufferFormat = D3DFMT_X8R8G8B8; d3dpp.BackBufferCount = 1; d3dpp.BackBufferWidth = 800; d3dpp.BackBufferHeight = 600; d3dpp.hDeviceWindow = hWnd; Do I have to add some code to it?

Share this post


Link to post
Share on other sites
You should probably have something that ends the program and cleans up everything on a keypress rather than exiting using the windows key.

Send a WM_DESTROY message when the escape key is pressed or something along those lines.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this