attempt to fix the resolution problem by going back to the old code
This commit is contained in:
+8
-4
@@ -80,10 +80,14 @@ static Preference<bool> g_bAllowMultipleInstances( "AllowMultipleInstances", fal
|
|||||||
|
|
||||||
void StepMania::GetPreferredVideoModeParams( VideoModeParams ¶msOut )
|
void StepMania::GetPreferredVideoModeParams( VideoModeParams ¶msOut )
|
||||||
{
|
{
|
||||||
// unsure if this is still going to cause first run issues. -aj
|
// resolution handling code that probably needs fixing
|
||||||
float fAspectRatio = PREFSMAN->m_fDisplayAspectRatio;
|
int iWidth = PREFSMAN->m_iDisplayWidth;
|
||||||
int iHeight = PREFSMAN->m_iDisplayHeight;
|
if( PREFSMAN->m_bWindowed )
|
||||||
int iWidth = ceilf(iHeight * fAspectRatio);
|
{
|
||||||
|
//float fRatio = PREFSMAN->m_iDisplayHeight;
|
||||||
|
//iWidth = PREFSMAN->m_iDisplayHeight * fRatio;
|
||||||
|
iWidth = static_cast<int>(ceilf(PREFSMAN->m_iDisplayHeight * PREFSMAN->m_fDisplayAspectRatio));
|
||||||
|
}
|
||||||
|
|
||||||
// todo: allow for PRODUCT_ID + "-" + CommonMetrics::WINDOW_TITLE as
|
// todo: allow for PRODUCT_ID + "-" + CommonMetrics::WINDOW_TITLE as
|
||||||
// a theme option (Midi requested it, AJ had the idea for making it optional)
|
// a theme option (Midi requested it, AJ had the idea for making it optional)
|
||||||
|
|||||||
Reference in New Issue
Block a user