Re: [GD-Windows] Messed up windows after fullscreen
Brought to you by:
vexxed72
|
From: Aaron H. <Vid...@ho...> - 2001-09-28 01:09:22
|
I believe you have to restore the display settings before closing
everything down. I've attached a Win32 skeleton application that was
developed for the OpenGL Challenge.
An example:
void RestoreDisplayMode()
{
ChangeDisplaySettings(0, 0);
}
LRESULT CALLBACK SkeletonProc( HWND hWnd, UINT uMsg, WPARAM wParam,
LPARAM lParam )
{
// Keep drawing stuff around.
static HGLRC hRC;
static HDC hDC;
//-- snip --
case WM_DESTROY:
wglMakeCurrent( hDC, NULL );
wglDeleteContext( hRC );
if( fullscreen )
{
RestoreDisplayMode();
}
PostQuitMessage( 0 );
break;
//-- /snip --
Hope this helps...
- Aaron.
Brian Hook wrote:
>
> I'm sure this kind of thing comes up all the time, but I'm getting
> really annoyed that when I go fullscreen and return that all my windows
> (not icons though) are scrunched down. Is this a driver issue? This is
> on Win2K SP2 w/ GF3 12.41 using ChangeDisplaySettings().
>
> Brian
>
> _______________________________________________
> Gamedevlists-windows mailing list
> Gam...@li...
> https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows |