From 5235581e33888ebc94ab94f858098408a80c6282 Mon Sep 17 00:00:00 2001 From: Phnod Date: Fri, 1 Sep 2023 13:49:22 -0400 Subject: [PATCH 1/2] fix: remove height trim on rotated text --- src/game/game_1531a0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/game_1531a0.c b/src/game/game_1531a0.c index 24fd38485..d1bc4f4da 100644 --- a/src/game/game_1531a0.c +++ b/src/game/game_1531a0.c @@ -1790,7 +1790,7 @@ Gfx *text0f15568c(Gfx *gdl, s32 *x, s32 *y, struct fontchar *curchar, struct fon (*x + curchar->width) * 4 + var8007fadc, G_TX_RENDERTILE, var8007fae8 + 32, - ((curchar->height - 1) << 5) + var8007fae4 + 32, + ((curchar->height) << 5) + var8007fae4 + 32, 1024, 65536 - 1024 / var8007fad0); } else { From eff475c4980d14365f1250fbe55789a5fe62e63e Mon Sep 17 00:00:00 2001 From: Phnod Date: Fri, 1 Sep 2023 14:38:17 -0400 Subject: [PATCH 2/2] fix: nudge menu left side text a pixel to the left to counteract extra pixel column --- src/game/menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/menu.c b/src/game/menu.c index 7f11faf3d..3a13a2f0e 100644 --- a/src/game/menu.c +++ b/src/game/menu.c @@ -3011,7 +3011,7 @@ Gfx *dialogRender(Gfx *gdl, struct menudialog *dialog, struct menu *menu, bool l textMeasure(&textheight, &textwidth, title, g_CharsHandelGothicXs, g_FontHandelGothicXs, 0); - x = dialogleft - 1; + x = dialogleft - 2; y = (dialogtop + dialogbottom) / 2 - textwidth - 3; if (y < dialogtop) {