X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_window.c;h=12e6b523730ec63ee868cb467082a2b778dbc49b;hb=2c55bae5c0678f98fceef9bdaa9554988c150635;hp=ca758076f48e146293992c5c4863c45f271ab201;hpb=6b33772ecdb882126da5c4a2c48c340ebe63cf37;p=freeglut diff --git a/src/freeglut_window.c b/src/freeglut_window.c index ca75807..12e6b52 100644 --- a/src/freeglut_window.c +++ b/src/freeglut_window.c @@ -162,7 +162,9 @@ GLboolean fgSetupPixelFormat( SFG_Window* window, GLboolean checkOnly, if( fgState.DisplayMode & GLUT_DOUBLE ) flags |= PFD_DOUBLEBUFFER; +#if defined(_MSC_VER) #pragma message( "fgSetupPixelFormat(): there is still some work to do here!" ) +#endif /* * Specify which pixel format do we opt for... @@ -528,6 +530,8 @@ void fgOpenWindow( SFG_Window* window, const char* title, #endif + fgSetWindow( window ); + window->Window.DoubleBuffered = ( fgState.DisplayMode & GLUT_DOUBLE ) ? 1 : 0; @@ -536,7 +540,6 @@ void fgOpenWindow( SFG_Window* window, const char* title, glDrawBuffer ( GL_FRONT ); glReadBuffer ( GL_FRONT ); } - fgSetWindow( window ); } /* @@ -716,6 +719,8 @@ void FGAPIENTRY glutIconifyWindow( void ) freeglut_assert_ready; freeglut_assert_window; + fgStructure.Window->State.Visible = GL_FALSE; + #if TARGET_HOST_UNIX_X11 XIconifyWindow( fgDisplay.Display, fgStructure.Window->Window.Handle, @@ -960,10 +965,10 @@ void FGAPIENTRY glutFullScreen( void ) WS_CLIPCHILDREN, FALSE ); /* - * SWP_NOACTIVATE Do not activate the window - * SWP_NOOWNERZORDER Do not change position in z-order - * SWP_NOSENDCHANGING Supress WM_WINDOWPOSCHANGING message - * SWP_NOZORDER Retains the current Z order (ignore 2nd param) + * SWP_NOACTIVATE Do not activate the window + * SWP_NOOWNERZORDER Do not change position in z-order + * SWP_NOSENDCHANGING Supress WM_WINDOWPOSCHANGING message + * SWP_NOZORDER Retains the current Z order (ignore 2nd param) */ SetWindowPos( fgStructure.Window->Window.Handle,