PDA

View Full Version : Screen resolution Problem.



qiz
11-23-2000, 12:04 AM
When I set my OGL app. to run in fullscreen and changing the bitdepth, it cant set the old resolution in windows back when terminating the app.

I run windows in 1280x1024x32.
My app. sets resoulution to 800x600x16.
When terminating, windows stays in 800x600.
Why?

Bob
11-23-2000, 12:53 AM
If you use ChangeDisplaySettings() to go fullscreen, you need to call it again when the application is quitting, but now like this: ChangeDisplaySettings(NULL, 0). This will set the screen resolution to the original desktop settings.

qiz
11-24-2000, 12:24 AM
I do that, that's the problem. It should work. I tried it out on another computer with a different video card. Same thing happened.

This only occur when I change the bit depth though.