From 1597b6fe227c61bbf9923b35b1f68f4c9a27f4ec Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 7 Feb 2006 08:16:45 +0000 Subject: [PATCH] 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. --- stepmania/src/StepMania.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 9711485704..512339e6ca 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -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 );