git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1558
7f0cb862-5218-0410-a997-
914c9d46530a
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();
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;
}