RE: [GD-Windows] Messed up windows after fullscreen
Brought to you by:
vexxed72
From: Brian H. <pu...@py...> - 2001-09-28 01:23:57
|
That's basically what I'm doing. My exact shutdown sequence is: glDeleteLists( ... ); wglMakeCurrent( ... ); wglDeleteContext( ... ); SetDeviceGammaRamp( oldGamma ); ReleaseDC(); ChangeDisplaySettings( 0, 0 ); DestroyWindow(); I tried transposing the DestroyWindow and CDS calls, but that didn't fix it. However, it seems like the issue might have more to do with losing the focus while in full screen. I just reran my code, and everything works fine UNLESS SOMETHING ELSE TAKES THE FOCUS. The first time I ran, I lost the focus to ICQ for some reason. The second time I ran Windows decided that my app wasn't the active one and instead made another random window on top. I have no idea how to get around this -- I've tried SetFocus() and all the various permutations of topmost window, etc. and it still randomly gives the focus to another running when I start to run. Brian |