mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 04:41:39 +00:00
video_patches: don't adjust CSD aspect if UIScaleMode is Stretch
This commit is contained in:
parent
118c2f3ce2
commit
e405887c0e
1 changed files with 3 additions and 0 deletions
|
|
@ -41,6 +41,9 @@ void CameraBoostAspectRatioMidAsmHook(PPCRegister& r31, PPCRegister& f0)
|
||||||
|
|
||||||
void CSDAspectRatioMidAsmHook(PPCRegister& f1, PPCRegister& f2)
|
void CSDAspectRatioMidAsmHook(PPCRegister& f1, PPCRegister& f2)
|
||||||
{
|
{
|
||||||
|
if (Config::UIScaleMode == EUIScaleMode::Stretch)
|
||||||
|
return;
|
||||||
|
|
||||||
auto newAspectRatio = (float)Window::s_width / (float)Window::s_height;
|
auto newAspectRatio = (float)Window::s_width / (float)Window::s_height;
|
||||||
|
|
||||||
if (newAspectRatio > m_baseAspectRatio)
|
if (newAspectRatio > m_baseAspectRatio)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue