PDA

View Full Version : full screen - nothing displayed - HGE



GameDevCn
11-11-2004, 05:15 PM
I'm using HGE. (Anybody else here?)
I tried to change the display mode to full screen by EnumDisplaySettings() and ChangeDisplaySettings(). The display mode was changed successfully.
However, after change, nothing is displayed in the window of the game.
If I switch to another application, and then switch back to my game, display will recover.
This happens on Windows 98 and Windows XP.
Anybody please help?
Thank you in advance.

mkovacic
11-12-2004, 03:29 AM
I'm using HGE. (Anybody else here?)
I tried to change the display mode to full screen by EnumDisplaySettings() and ChangeDisplaySettings(). The display mode was changed successfully.
However, after change, nothing is displayed in the window of the game.
If I switch to another application, and then switch back to my game, display will recover.
This happens on Windows 98 and Windows XP.
Anybody please help?
Thank you in advance.
Do a bit of windows message logging to make sure your still have the focus/did not minimize/etc when you switch to fullscreen.

Try one or both of the

SetForegroundWindow(yourWin);
SetWindowPos(yourWin, HWND_TOPMOST, 0, 0, modeWidth, modeHeight, NULL );

before the switch and see if it helps.