Don't store PREFSMAN->m_iRefreshRate from the actual settings

if the setting was "don't care".

This wasn't possible previously, since code expected PREFSMAN
settings to line up with the actual settings; now, use
DISPLAY->GetActualVideoModeParams.
This commit is contained in:
Glenn Maynard
2006-02-07 08:16:45 +00:00
parent 04577935f7
commit 1597b6fe22
+2 -1
View File
@@ -141,7 +141,8 @@ static void StoreActualGraphicOptions()
PREFSMAN->m_iDisplayWidth .Set( params.width );
PREFSMAN->m_iDisplayHeight .Set( params.height );
PREFSMAN->m_iDisplayColorDepth .Set( params.bpp );
PREFSMAN->m_iRefreshRate .Set( params.rate );
if( PREFSMAN->m_iRefreshRate != REFRESH_DEFAULT )
PREFSMAN->m_iRefreshRate.Set( params.rate );
PREFSMAN->m_bVsync .Set( params.vsync );
Dialog::SetWindowed( params.windowed );