# ifdef X_XF86VidModeGetAllModeLines
XF86VidModeModeInfo** displayModes;
- gint i, displayModesCount;
+ int i, displayModesCount;
/*
* Query for all the display available...
/*
* Checks the display mode settings against user's preferences
*/
-gboolean fghCheckDisplayMode( gint width, gint height, gint depth, gint refresh )
+GLboolean fghCheckDisplayMode( int width, int height, int depth, int refresh )
{
/*
* The desired values should be stored in fgState structure...
/*
* Changes the current display mode to match user's settings
*/
-gboolean fghChangeDisplayMode( gboolean haveToTest )
+GLboolean fghChangeDisplayMode( GLboolean haveToTest )
{
#if TARGET_HOST_UNIX_X11
# ifdef X_XF86VidModeGetAllModeLines
XF86VidModeModeInfo** displayModes;
- gint i, displayModesCount;
+ int i, displayModesCount;
/*
* Query for all the display available...
*/
if( mode != 0xffffffff )
{
- gint retVal = DISP_CHANGE_SUCCESSFUL;
+ int retVal = DISP_CHANGE_SUCCESSFUL;
/*
* Mark the values we want to modify in the display change call
/*
* Sets the game mode display string
*/
-void FGAPIENTRY glutGameModeString( const gchar* string )
+void FGAPIENTRY glutGameModeString( const char* string )
{
- gint width = 640, height = 480, depth = 16, refresh = 72;
+ int width = 640, height = 480, depth = 16, refresh = 72;
/*
* This one seems a bit easier than glutInitDisplayString. The bad thing
if( sscanf( string, ":%i@%i", &depth, &refresh ) != 2 )
if( sscanf( string, ":%i", &depth ) != 1 )
if( sscanf( string, "@%i", &refresh ) != 1 )
- g_warning( "unable to parse game mode string `%s'", string );
+ fgWarning( "unable to parse game mode string `%s'", string );
/*
* Hopefully it worked, and if not, we still have the default values
*/
if( fghChangeDisplayMode( FALSE ) == FALSE )
{
- g_warning( "failed to change screen settings" );
+ fgWarning( "failed to change screen settings" );
return( FALSE );
}
*/
return( fgStructure.GameMode != NULL );
}
+
+ return( -1 );
}
/*** END OF FILE ***/