Removed WindowState.IsGameMode; it is redundant with Structure.GameModeWindow

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@705 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
joekrahn 2006-09-23 03:49:13 +00:00
parent 94662b8d1b
commit d38b3eeff0
3 changed files with 1 additions and 6 deletions

View File

@ -437,8 +437,6 @@ int FGAPIENTRY glutEnterGameMode( void )
fgStructure.GameModeWindow->State.Height = fgState.GameModeSize.Y;
fgStructure.GameModeWindow->State.NeedToResize = GL_TRUE;
fgStructure.GameModeWindow->State.IsGameMode = GL_TRUE;
#if TARGET_HOST_POSIX_X11
/*
@ -541,8 +539,6 @@ void FGAPIENTRY glutLeaveGameMode( void )
freeglut_return_if_fail( fgStructure.GameModeWindow );
fgStructure.GameModeWindow->State.IsGameMode = GL_FALSE;
fgAddToWindowDestroyList( fgStructure.GameModeWindow );
fgStructure.GameModeWindow = NULL;

View File

@ -422,7 +422,6 @@ struct tagSFG_WindowState
GLboolean IgnoreKeyRepeat; /* Whether to ignore key repeat. */
GLboolean KeyRepeating; /* Currently in repeat mode */
GLboolean IsGameMode; /* Is this the game mode window? */
GLboolean NeedToResize; /* Do we need to resize the window? */
};

View File

@ -120,7 +120,7 @@ static void fghReshapeWindow ( SFG_Window *window, int width, int height )
if ( window->Parent == NULL )
{
if ( ! window->IsMenu && !window->State.IsGameMode )
if ( ! window->IsMenu && (window != fgStructure.GameModeWindow) )
{
w += GetSystemMetrics( SM_CXSIZEFRAME ) * 2;
h += GetSystemMetrics( SM_CYSIZEFRAME ) * 2 +