X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_window.c;h=c92fbcb8a7c3df59838003f1bb93afa9415e9148;hb=34290224a4fea01b30fe3c83d3c6d00bd5945acd;hp=ca758076f48e146293992c5c4863c45f271ab201;hpb=6b33772ecdb882126da5c4a2c48c340ebe63cf37;p=freeglut diff --git a/src/freeglut_window.c b/src/freeglut_window.c index ca75807..c92fbcb 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 ); } /* @@ -960,10 +963,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,