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:
parent
b3b678a2f7
commit
9ae70d72c7
@ -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();
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user