"aspect ratio" is ambiguous; s/m_fAspectRatio/m_fDisplayAspectRatio/
This commit is contained in:
@@ -74,7 +74,7 @@ PrefsManager::PrefsManager() :
|
||||
m_iMovieColorDepth ( Options, "MovieColorDepth", 16 ),
|
||||
m_iMaxTextureResolution ( Options, "MaxTextureResolution", 2048 ),
|
||||
m_iRefreshRate ( Options, "RefreshRate", REFRESH_DEFAULT ),
|
||||
m_fAspectRatio ( Options, "AspectRatio", 4/3.0f ),
|
||||
m_fDisplayAspectRatio ( Options, "DisplayAspectRatio", 4/3.0f ),
|
||||
m_bShowStats ( Options, "ShowStats",
|
||||
#ifdef DEBUG
|
||||
true
|
||||
|
||||
@@ -27,7 +27,7 @@ public:
|
||||
Preference<int> m_iMovieColorDepth;
|
||||
Preference<int> m_iMaxTextureResolution;
|
||||
Preference<int> m_iRefreshRate;
|
||||
Preference<float> m_fAspectRatio;
|
||||
Preference<float> m_fDisplayAspectRatio;
|
||||
Preference<bool> m_bShowStats;
|
||||
Preference<bool> m_bShowBanners;
|
||||
|
||||
|
||||
@@ -23,8 +23,8 @@ ThemeMetric<float> THEME_SCREEN_HEIGHT("Common","ScreenHeight");
|
||||
float ScreenWidth()
|
||||
{
|
||||
float fScale = 1;
|
||||
if( PREFSMAN->m_fAspectRatio > ASPECT_4_TO_3 )
|
||||
fScale = PREFSMAN->m_fAspectRatio / ASPECT_4_TO_3;
|
||||
if( PREFSMAN->m_fDisplayAspectRatio > ASPECT_4_TO_3 )
|
||||
fScale = PREFSMAN->m_fDisplayAspectRatio / ASPECT_4_TO_3;
|
||||
ASSERT( fScale >= 1 );
|
||||
return THEME_SCREEN_WIDTH * fScale;
|
||||
}
|
||||
@@ -32,8 +32,8 @@ float ScreenWidth()
|
||||
float ScreenHeight()
|
||||
{
|
||||
float fScale = 1;
|
||||
if( PREFSMAN->m_fAspectRatio < ASPECT_4_TO_3 )
|
||||
fScale = ASPECT_4_TO_3 / PREFSMAN->m_fAspectRatio;
|
||||
if( PREFSMAN->m_fDisplayAspectRatio < ASPECT_4_TO_3 )
|
||||
fScale = ASPECT_4_TO_3 / PREFSMAN->m_fDisplayAspectRatio;
|
||||
ASSERT( fScale >= 1 );
|
||||
return THEME_SCREEN_HEIGHT * fScale;
|
||||
}
|
||||
|
||||
@@ -447,7 +447,7 @@ static void RefreshRate( int &sel, bool ToSel, const ConfOption *pConfOption )
|
||||
static void AspectRatio( int &sel, bool ToSel, const ConfOption *pConfOption )
|
||||
{
|
||||
const float mapping[] = { 3/4.f,1,4/3.0f,16/10.0f,16/9.f, 8/3.f };
|
||||
MoveMap( sel, PREFSMAN->m_fAspectRatio.Value(), ToSel, mapping, ARRAYSIZE(mapping) );
|
||||
MoveMap( sel, PREFSMAN->m_fDisplayAspectRatio.Value(), ToSel, mapping, ARRAYSIZE(mapping) );
|
||||
}
|
||||
|
||||
/* Sound options */
|
||||
|
||||
@@ -93,7 +93,7 @@ static RageDisplay::VideoModeParams GetCurVideoModeParams()
|
||||
WINDOW_TITLE,
|
||||
THEME->GetPathToG("Common window icon"),
|
||||
PREFSMAN->m_bPAL,
|
||||
PREFSMAN->m_fAspectRatio
|
||||
PREFSMAN->m_fDisplayAspectRatio
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user