Missed a few say-nothing-new comments in fgOpenWindow().
Eeep. Should be better now. (^& git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@277 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
a1c14f4cf5
commit
350de30921
@ -524,32 +524,21 @@ void fgOpenWindow( SFG_Window* window, const char* title,
|
|||||||
if( !( window->Window.Handle ) )
|
if( !( window->Window.Handle ) )
|
||||||
fgError( "Failed to create a window (%s)!", title );
|
fgError( "Failed to create a window (%s)!", title );
|
||||||
|
|
||||||
/*
|
|
||||||
* Show and update the main window. Hide(???) the mouse cursor.
|
|
||||||
*/
|
|
||||||
ShowWindow( window->Window.Handle,
|
ShowWindow( window->Window.Handle,
|
||||||
fgState.ForceIconic ? SW_SHOWMINIMIZED : SW_SHOW );
|
fgState.ForceIconic ? SW_SHOWMINIMIZED : SW_SHOW );
|
||||||
UpdateWindow( window->Window.Handle );
|
UpdateWindow( window->Window.Handle );
|
||||||
ShowCursor( TRUE );
|
ShowCursor( TRUE ); /* XXX Old comments say "hide cusror"! */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
window->Window.DoubleBuffered =
|
window->Window.DoubleBuffered =
|
||||||
( fgState.DisplayMode & GLUT_DOUBLE ) ? 1 : 0 ;
|
( fgState.DisplayMode & GLUT_DOUBLE ) ? 1 : 0 ;
|
||||||
|
|
||||||
/*
|
|
||||||
* If it's not double-buffered, make sure the rendering is done to the
|
|
||||||
* front buffer.
|
|
||||||
*/
|
|
||||||
if ( ! window->Window.DoubleBuffered )
|
if ( ! window->Window.DoubleBuffered )
|
||||||
{
|
{
|
||||||
glDrawBuffer ( GL_FRONT ) ;
|
glDrawBuffer ( GL_FRONT ) ;
|
||||||
glReadBuffer ( GL_FRONT ) ;
|
glReadBuffer ( GL_FRONT ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Set the newly created window as the current one
|
|
||||||
*/
|
|
||||||
fgSetWindow( window );
|
fgSetWindow( window );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user