mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 20:10:00 +00:00
Cutscene aspect ratio fix
This commit is contained in:
parent
9e0b23f065
commit
b1e235535c
|
@ -24,12 +24,17 @@ float
|
||||||
CDraw::CalculateAspectRatio(void)
|
CDraw::CalculateAspectRatio(void)
|
||||||
{
|
{
|
||||||
if (FrontEndMenuManager.m_PrefsUseWideScreen) {
|
if (FrontEndMenuManager.m_PrefsUseWideScreen) {
|
||||||
|
#ifdef ASPECT_RATIO_SCALE
|
||||||
|
if (TheCamera.m_WideScreenOn)
|
||||||
|
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
|
||||||
|
CDraw::ms_fAspectRatio = FrontEndMenuManager.m_PrefsUseWideScreen == AR_AUTO ? SCREEN_WIDTH / SCREEN_HEIGHT : 16.f / 9.f;
|
||||||
|
#else
|
||||||
if (TheCamera.m_WideScreenOn)
|
if (TheCamera.m_WideScreenOn)
|
||||||
CDraw::ms_fAspectRatio = 5.f / 3.f; // It's used on theatrical showings according to Wiki
|
CDraw::ms_fAspectRatio = 5.f / 3.f; // It's used on theatrical showings according to Wiki
|
||||||
else
|
else
|
||||||
#ifdef ASPECT_RATIO_SCALE
|
|
||||||
CDraw::ms_fAspectRatio = FrontEndMenuManager.m_PrefsUseWideScreen == AR_AUTO ? SCREEN_WIDTH / SCREEN_HEIGHT : 16.f / 9.f;
|
|
||||||
#else
|
|
||||||
CDraw::ms_fAspectRatio = 16.f / 9.f;
|
CDraw::ms_fAspectRatio = 16.f / 9.f;
|
||||||
#endif
|
#endif
|
||||||
} else if (TheCamera.m_WideScreenOn) {
|
} else if (TheCamera.m_WideScreenOn) {
|
||||||
|
|
Loading…
Reference in a new issue