View Full Version : Switching to full screen
Mike Wiering
10-04-2004, 08:15 AM
Could anyone tell me if there's a way to switch to full screen without having Windows rebuild the entire desktop in low resolution? Now it looks really ugly: first you get all the icons one by one in, then the game starts and blanks the screen, but the system tray at the bottom remains there for another 3 to 5 seconds while the game is already running.
I'm using OpenGL and I use the ChangeDisplaySettings (with CDS_FULLSCREEN).
Chaster
10-04-2004, 08:22 AM
Could anyone tell me if there's a way to switch to full screen without having Windows rebuild the entire desktop in low resolution? Now it looks really ugly: first you get all the icons one by one in, then the game starts and blanks the screen, but the system tray at the bottom remains there for another 3 to 5 seconds while the game is already running.
I'm using OpenGL and I use the ChangeDisplaySettings (with CDS_FULLSCREEN).
Hmmm, this is just a stab in the dark - but perhaps you should pause your game while switching screen modes? It sounds like your game loop may be sucking up all the CPU time which then results in the sloooowww transition/cleanup by windows.
All of the games i've made that switch screen modes don't have this problem, but I always pause the game loop during mode switch..
Another possibility - bad driver....?
<scratches head>... that's a tough one to crack, since it's not entirely clear what's going on...
Mike Wiering
10-04-2004, 11:43 AM
I just found a way to solve the problem by drawing a black rectangle (GDI) over my window immediately after creating it (window style set to WS_EX_TOPMOST). Now the screen just stays black until the game starts.
Powered by vBulletin™ Version 4.1.3 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.