projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor style normalizations to minimize the diffs between *now* and from
[freeglut]
/
src
/
freeglut_gamemode.c
diff --git
a/src/freeglut_gamemode.c
b/src/freeglut_gamemode.c
index
7c9b7eb
..
b909655
100644
(file)
--- a/
src/freeglut_gamemode.c
+++ b/
src/freeglut_gamemode.c
@@
-413,7
+413,7
@@
void FGAPIENTRY glutGameModeString( const char* string )
int FGAPIENTRY glutEnterGameMode( void )
{
if( fgStructure.GameMode )
int FGAPIENTRY glutEnterGameMode( void )
{
if( fgStructure.GameMode )
- fgAddToWindowDestroyList( fgStructure.GameMode, GL_TRUE );
+ fgAddToWindowDestroyList( fgStructure.GameMode );
else
fghRememberState( );
else
fghRememberState( );
@@
-428,6
+428,8
@@
int FGAPIENTRY glutEnterGameMode( void )
fgState.GameModeSize.X, fgState.GameModeSize.Y, GL_TRUE, GL_FALSE
);
fgState.GameModeSize.X, fgState.GameModeSize.Y, GL_TRUE, GL_FALSE
);
+ fgStructure.GameMode->State.IsGameMode = GL_TRUE;
+
#if TARGET_HOST_UNIX_X11
/* Move the window up to the topleft corner */
#if TARGET_HOST_UNIX_X11
/* Move the window up to the topleft corner */
@@
-534,7
+536,9
@@
void FGAPIENTRY glutLeaveGameMode( void )
{
freeglut_return_if_fail( fgStructure.GameMode );
{
freeglut_return_if_fail( fgStructure.GameMode );
- fgAddToWindowDestroyList( fgStructure.GameMode, GL_TRUE );
+ fgStructure.GameMode->State.IsGameMode = GL_FALSE;
+
+ fgAddToWindowDestroyList( fgStructure.GameMode );
#if TARGET_HOST_UNIX_X11
#if TARGET_HOST_UNIX_X11