0, /* ActiveMenus */
NULL, /* MenuStateCallback */
NULL, /* MenuStatusCallback */
- { 640, 480, GL_TRUE }, /* GameModeSize */
- 16, /* GameModeDepth */
- 72, /* GameModeRefresh */
+ { -1, -1, GL_TRUE }, /* GameModeSize */
+ -1, /* GameModeDepth */
+ -1, /* GameModeRefresh */
GLUT_ACTION_EXIT, /* ActionOnWindowClose */
GLUT_EXEC_STATE_INIT, /* ExecState */
NULL, /* ProgramName */
fgState.KeyRepeat = GLUT_KEY_REPEAT_ON;
fgState.Modifiers = INVALID_MODIFIERS;
- fgState.GameModeSize.X = 640;
- fgState.GameModeSize.Y = 480;
- fgState.GameModeDepth = 16;
- fgState.GameModeRefresh = 72;
+ fgState.GameModeSize.X = -1;
+ fgState.GameModeSize.Y = -1;
+ fgState.GameModeDepth = -1;
+ fgState.GameModeRefresh = -1;
fgListInit( &fgState.Timers );
fgListInit( &fgState.FreeTimers );
*/
void fgPlatformRememberState( void )
{
-/* DEVMODE devMode; */
-
/* Grab the current desktop settings... */
-/* hack to get around my stupid cross-gcc headers */
-#define FREEGLUT_ENUM_CURRENT_SETTINGS -1
+ /* hack to get around my stupid cross-gcc headers */
+ #define FREEGLUT_ENUM_CURRENT_SETTINGS -1
EnumDisplaySettings( fgDisplay.pDisplay.DisplayName, FREEGLUT_ENUM_CURRENT_SETTINGS,
&fgDisplay.pDisplay.DisplayMode );
{
/* Restore the previously remembered desktop display settings */
ChangeDisplaySettingsEx( fgDisplay.pDisplay.DisplayName,&fgDisplay.pDisplay.DisplayMode, 0,0,0 );
-
}
void fgPlatformLeaveGameMode( void )
{
}
-