summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-10-12 11:16:24 +0200
committereray orçunus <erayorcunus@gmail.com>2020-10-12 11:16:24 +0200
commitb1e235535c513fde1ced6f7b255c7d5a04bee712 (patch)
tree9818949c8925d02f7f9b480c8ba63ecc4fe45e1e
parentMerge pull request #758 from erorcun/miami (diff)
downloadre3-b1e235535c513fde1ced6f7b255c7d5a04bee712.tar
re3-b1e235535c513fde1ced6f7b255c7d5a04bee712.tar.gz
re3-b1e235535c513fde1ced6f7b255c7d5a04bee712.tar.bz2
re3-b1e235535c513fde1ced6f7b255c7d5a04bee712.tar.lz
re3-b1e235535c513fde1ced6f7b255c7d5a04bee712.tar.xz
re3-b1e235535c513fde1ced6f7b255c7d5a04bee712.tar.zst
re3-b1e235535c513fde1ced6f7b255c7d5a04bee712.zip
-rw-r--r--src/render/Draw.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/render/Draw.cpp b/src/render/Draw.cpp
index 131534a3..912399c9 100644
--- a/src/render/Draw.cpp
+++ b/src/render/Draw.cpp
@@ -24,12 +24,17 @@ float
CDraw::CalculateAspectRatio(void)
{
if (FrontEndMenuManager.m_PrefsUseWideScreen) {
+#ifdef ASPECT_RATIO_SCALE
if (TheCamera.m_WideScreenOn)
- CDraw::ms_fAspectRatio = 5.f / 3.f; // It's used on theatrical showings according to Wiki
+ CDraw::ms_fAspectRatio = FrontEndMenuManager.m_PrefsUseWideScreen == AR_AUTO ?
+ (5.f / 3.f) * (SCREEN_WIDTH / SCREEN_HEIGHT) / (16.f / 9.f) :
+ 5.f / 3.f; // It's used on theatrical showings according to Wiki
else
-#ifdef ASPECT_RATIO_SCALE
CDraw::ms_fAspectRatio = FrontEndMenuManager.m_PrefsUseWideScreen == AR_AUTO ? SCREEN_WIDTH / SCREEN_HEIGHT : 16.f / 9.f;
#else
+ if (TheCamera.m_WideScreenOn)
+ CDraw::ms_fAspectRatio = 5.f / 3.f; // It's used on theatrical showings according to Wiki
+ else
CDraw::ms_fAspectRatio = 16.f / 9.f;
#endif
} else if (TheCamera.m_WideScreenOn) {