*/
/* hack to get around my stupid cross-gcc headers */
-#define ENUM_CURRENT_SETTINGS -1
+#define FREEGLUT_ENUM_CURRENT_SETTINGS -1
- EnumDisplaySettings( NULL, ENUM_CURRENT_SETTINGS, &fgDisplay.DisplayMode );
+ EnumDisplaySettings( NULL, FREEGLUT_ENUM_CURRENT_SETTINGS, &fgDisplay.DisplayMode );
/*
* Make sure we will be restoring all settings needed
devMode.dmBitsPerPel, fgState.GameModeRefresh ) )
{
/*
- * OKi, we've found a matching display mode, remember it's number and break
+ * OKi, we've found a matching display mode, remember its number and break
*/
mode = displayModes;
break;
/*
* ...if so, delete it before proceeding...
*/
- fgDestroyWindow( fgStructure.GameMode, TRUE );
+ fgAddToWindowDestroyList( fgStructure.GameMode, TRUE );
}
else
{
*/
if( fghChangeDisplayMode( FALSE ) == FALSE )
{
- fgWarning( "failed to change screen settings" );
+ fgWarning( "failed to change screen settings" );
return( FALSE );
}
freeglut_return_if_fail( fgStructure.GameMode != NULL );
/*
- * First of all, have the game mode window created
+ * First of all, have the game mode window destroyed
*/
- fgDestroyWindow( fgStructure.GameMode, TRUE );
+ fgAddToWindowDestroyList( fgStructure.GameMode, TRUE );
#if TARGET_HOST_UNIX_X11