projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix to glutInit() command-line argument compaction - Patch #1027724 from takeshi2
[freeglut]
/
src
/
freeglut_gamemode.c
diff --git
a/src/freeglut_gamemode.c
b/src/freeglut_gamemode.c
index
5f93431
..
c1764b8
100644
(file)
--- a/
src/freeglut_gamemode.c
+++ b/
src/freeglut_gamemode.c
@@
-48,7
+48,7
@@
* Remembers the current visual settings, so that
* we can change them and restore later...
*/
* Remembers the current visual settings, so that
* we can change them and restore later...
*/
-void fghRememberState( void )
+static void fghRememberState( void )
{
#if TARGET_HOST_UNIX_X11
{
#if TARGET_HOST_UNIX_X11
@@
-96,7
+96,7
@@
void fghRememberState( void )
);
if( !fgDisplay.DisplayModeValid )
);
if( !fgDisplay.DisplayModeValid )
- fgWarning( "Runtime use of XF86VidModeGetModeLine failed.\n" );
+ fgWarning( "Runtime use of XF86VidModeGetModeLine failed." );
# else
/*
# else
/*
@@
-127,7
+127,7
@@
void fghRememberState( void )
/*
* Restores the previously remembered visual settings
*/
/*
* Restores the previously remembered visual settings
*/
-void fghRestoreState( void )
+static void fghRestoreState( void )
{
#if TARGET_HOST_UNIX_X11
{
#if TARGET_HOST_UNIX_X11
@@
-207,7
+207,7
@@
void fghRestoreState( void )
/*
* Checks the display mode settings against user's preferences
*/
/*
* Checks the display mode settings against user's preferences
*/
-GLboolean fghCheckDisplayMode( int width, int height, int depth, int refresh )
+static GLboolean fghCheckDisplayMode( int width, int height, int depth, int refresh )
{
/* The desired values should be stored in fgState structure... */
return ( width == fgState.GameModeSize.X ) &&
{
/* The desired values should be stored in fgState structure... */
return ( width == fgState.GameModeSize.X ) &&
@@
-219,7
+219,7
@@
GLboolean fghCheckDisplayMode( int width, int height, int depth, int refresh )
/*
* Changes the current display mode to match user's settings
*/
/*
* Changes the current display mode to match user's settings
*/
-GLboolean fghChangeDisplayMode( GLboolean haveToTest )
+static GLboolean fghChangeDisplayMode( GLboolean haveToTest )
{
#if TARGET_HOST_UNIX_X11
{
#if TARGET_HOST_UNIX_X11
@@
-559,6
+559,7
@@
int FGAPIENTRY glutGameModeGet( GLenum eWhat )
return !!fgStructure.GameMode;
}
return !!fgStructure.GameMode;
}
+ fgWarning( "Unknown gamemode get: %d", eWhat );
return -1;
}
return -1;
}