gamemode: just go fullscreen

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1558 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
dcnieho 2013-03-06 09:17:52 +00:00
parent b3b678a2f7
commit 9ae70d72c7
2 changed files with 5 additions and 5 deletions

View File

@ -112,9 +112,7 @@ int FGAPIENTRY glutEnterGameMode( void )
GL_TRUE, GL_FALSE
);
fgStructure.GameModeWindow->State.Width = fgState.GameModeSize.X;
fgStructure.GameModeWindow->State.Height = fgState.GameModeSize.Y;
fgStructure.GameModeWindow->State.NeedToResize = GL_TRUE;
glutFullScreen();
fgPlatformEnterGameMode();

View File

@ -437,9 +437,11 @@ void FGAPIENTRY glutFullScreen( void )
fgWarning("glutFullScreen called on a child window, ignoring...");
return;
}
else if (fgStructure.GameModeWindow != NULL && fgStructure.GameModeWindow->ID==win->ID)
else if (fgStructure.GameModeWindow != NULL && fgStructure.GameModeWindow->ID==win->ID && win->State.IsFullscreen)
{
/* Ignore fullscreen call on GameMode window, those are always fullscreen already */
/* Ignore fullscreen call on GameMode window, those are always fullscreen already
* only exception is during first entering GameMode
*/
return;
}