From 75133acbbd05645182b78cf3b019695317ec1c41 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Fri, 1 Dec 2023 17:31:42 +0100 Subject: [PATCH] port: alternate squished aspect fix by just changing the actual aspect instead of fucking around with the resolution --- src/game/player.c | 2 +- src/game/trainingmenus.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/player.c b/src/game/player.c index 2c8dd90b6..3ae336630 100644 --- a/src/game/player.c +++ b/src/game/player.c @@ -3037,7 +3037,7 @@ f32 player0f0bd358(void) #ifdef PLATFORM_N64 return result; #else - return result * (videoGetAspect() / (4.0f / 3.0f)); + return result * (videoGetAspect() / ((f32)SCREEN_WIDTH_LO / (f32)SCREEN_HEIGHT_LO)); #endif } diff --git a/src/game/trainingmenus.c b/src/game/trainingmenus.c index b942b0361..430d0db6b 100644 --- a/src/game/trainingmenus.c +++ b/src/game/trainingmenus.c @@ -1587,7 +1587,7 @@ MenuDialogHandlerResult ciCharacterProfileMenuDialog(s32 operation, struct menud } #ifndef PLATFORM_N64 - x = (float)x * (4.f / 3.f) / videoGetAspect(); + x = (float)x * ((f32)SCREEN_WIDTH_LO / (f32)SCREEN_HEIGHT_LO) / videoGetAspect(); #endif menuConfigureModel(&g_Menus[g_MpPlayerNum].menumodel, x, y, 0, 0, 0, 0, scale,