From: <fa...@us...> - 2011-03-17 02:55:57
|
Revision: 902 http://freeglut.svn.sourceforge.net/freeglut/?rev=902&view=rev Author: fayjf Date: 2011-03-17 02:55:51 +0000 (Thu, 17 Mar 2011) Log Message: ----------- Implementing the 'gamemode-testing_windows.patch' per e-mail from Diederick Niehorster dated 3/16/11 1:06 AM Modified Paths: -------------- trunk/freeglut/freeglut/src/freeglut_gamemode.c Modified: trunk/freeglut/freeglut/src/freeglut_gamemode.c =================================================================== --- trunk/freeglut/freeglut/src/freeglut_gamemode.c 2011-03-17 02:53:40 UTC (rev 901) +++ trunk/freeglut/freeglut/src/freeglut_gamemode.c 2011-03-17 02:55:51 UTC (rev 902) @@ -477,12 +477,15 @@ case DISP_CHANGE_SUCCESSFUL: success = GL_TRUE; - /* update vars in case if windows switched to proper mode */ - EnumDisplaySettings( fgDisplay.DisplayName, FREEGLUT_ENUM_CURRENT_SETTINGS, &devMode ); - fgState.GameModeSize.X = devMode.dmPelsWidth; - fgState.GameModeSize.Y = devMode.dmPelsHeight; - fgState.GameModeDepth = devMode.dmBitsPerPel; - fgState.GameModeRefresh = devMode.dmDisplayFrequency; + if (!haveToTest) + { + /* update vars in case if windows switched to proper mode */ + EnumDisplaySettings( fgDisplay.DisplayName, FREEGLUT_ENUM_CURRENT_SETTINGS, &devMode ); + fgState.GameModeSize.X = devMode.dmPelsWidth; + fgState.GameModeSize.Y = devMode.dmPelsHeight; + fgState.GameModeDepth = devMode.dmBitsPerPel; + fgState.GameModeRefresh = devMode.dmDisplayFrequency; + } break; case DISP_CHANGE_RESTART: fggmstr = "The computer must be restarted for the graphics mode to work."; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |