PDA

View Full Version : After exiting Fullscreen OpenGL program...



Ciphersoftware
03-28-2001, 10:51 AM
Hello. Im currently in the development of my first game. Im using OpenGL and the winapi, no glut. When the program exits and returns back to the desktop, my windows all resize. Its terribly annoying, but not life threatening:

Say I set up a fullscreen window, 800x600 pixels:
-if the desktop is currently 800x600; I will have no problems with the windows resizing on me.
-However, lets say my desktop is set to 1024x768; I will run into problems.

Does anyone know a simple solution for this bug?

Justin Todd http://justin-todd.tripod.com

Brent Fogarty
03-28-2001, 12:02 PM
I never noticed that before, I imagin it's because when you changed display modes windows tried to move the windows around to fit into the screen better. Unfortunately I don't think that's something you can fix. I don't think windows would like you telling it to move other programmes around.

n3r0nix
03-28-2001, 12:03 PM
if you use the same code as for the "FullScreenOpenGLWindow", you have to reset the displaymode with ChangeDisplaySettings(NULL,0) before exiting the app.

Ciphersoftware
03-28-2001, 03:09 PM
N3r, yep that fixes the problem, thanks a lot!