Changed screen width calculations to subtract 1 if the result is odd.

This commit is contained in:
Kyzentun
2015-01-21 10:44:16 -07:00
parent d28c8a8ab1
commit fb0b48be52
2 changed files with 8 additions and 1 deletions
+3
View File
@@ -88,6 +88,9 @@ void StepMania::GetPreferredVideoModeParams( VideoModeParams &paramsOut )
//float fRatio = PREFSMAN->m_iDisplayHeight;
//iWidth = PREFSMAN->m_iDisplayHeight * fRatio;
iWidth = static_cast<int>(ceilf(PREFSMAN->m_iDisplayHeight * PREFSMAN->m_fDisplayAspectRatio));
// ceilf causes the width to come out odd when it shouldn't.
// 576 * 1.7778 = 1024.0128, which is rounded to 1025. -Kyz
iWidth-= iWidth % 2;
}
paramsOut = VideoModeParams(