Loops and...white space.

I already regretted hgeol here.
This commit is contained in:
Jason Felds
2013-04-27 13:42:19 -04:00
parent 048109dbd6
commit 3ea1ab26a5
+4 -4
View File
@@ -257,9 +257,9 @@ static void DisplayResolutionChoices( vector<RString> &out )
DisplayResolutions d; DisplayResolutions d;
DISPLAY->GetDisplayResolutions( d ); DISPLAY->GetDisplayResolutions( d );
FOREACHS_CONST( DisplayResolution, d, iter ) for (DisplayResolution const &display : d)
{ {
RString s = ssprintf("%dx%d", iter->iWidth, iter->iHeight); RString s = ssprintf("%dx%d", display.iWidth, display.iHeight);
out.push_back( s ); out.push_back( s );
} }
} }
@@ -509,9 +509,9 @@ static void DisplayResolutionM( int &sel, bool ToSel, const ConfOption *pConfOpt
DisplayResolutions d; DisplayResolutions d;
DISPLAY->GetDisplayResolutions( d ); DISPLAY->GetDisplayResolutions( d );
FOREACHS_CONST( DisplayResolution, d, iter ) for (DisplayResolution const &display : d)
{ {
v.push_back( res_t(iter->iWidth, iter->iHeight) ); v.push_back( res_t(display.iWidth, display.iHeight) );
} }
res_t sel_res( PREFSMAN->m_iDisplayWidth, PREFSMAN->m_iDisplayHeight ); res_t sel_res( PREFSMAN->m_iDisplayWidth, PREFSMAN->m_iDisplayHeight );