From 6b4d39f6d5f3a43e3cb0f0ccdef14a6258558603 Mon Sep 17 00:00:00 2001 From: Michael <15317421+ActualMandM@users.noreply.github.com> Date: Thu, 10 Mar 2022 20:26:33 -0800 Subject: [PATCH] [SSB4] Adjust game height variable in code as well Helps with the HUD but the gameplay area still gets cut off --- src/SuperSmashBros/Graphics/patch_AspectRatio.asm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SuperSmashBros/Graphics/patch_AspectRatio.asm b/src/SuperSmashBros/Graphics/patch_AspectRatio.asm index 8cbff076..724e2998 100644 --- a/src/SuperSmashBros/Graphics/patch_AspectRatio.asm +++ b/src/SuperSmashBros/Graphics/patch_AspectRatio.asm @@ -1,4 +1,5 @@ [cross_f304] moduleMatches = 0x63FAA900 -0x03301E2C = li r3, ($width / $height) * $gameHeight +0x03301E2C = li r3, (($aspectRatioWidth <= 16) * 1920) + (($aspectRatioWidth > 16) * (($width / $height) * $gameHeight)) +0x03301E34 = li r3, (($aspectRatioHeight >= 9) * 1080) + (($aspectRatioHeight < 9) * (($height / $width) * $gameWidth))