From 6662d644d5d98122b6b21a7a6106400603f1fda3 Mon Sep 17 00:00:00 2001 From: Pk11 Date: Sun, 8 Aug 2021 08:26:33 -0500 Subject: [PATCH] Fix right alignment on fonts divisible by 256 --- arm9/source/font.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arm9/source/font.cpp b/arm9/source/font.cpp index a44e790..5c7233a 100644 --- a/arm9/source/font.cpp +++ b/arm9/source/font.cpp @@ -185,9 +185,9 @@ void Font::printf(int xPos, int yPos, bool top, Alignment align, Palette palette ITCM_CODE void Font::print(int xPos, int yPos, bool top, std::u16string_view text, Alignment align, Palette palette, bool rtl) { int x = xPos * tileWidth, y = yPos * tileHeight; if(x < 0 && align != Alignment::center) - x += 255; + x += 256; if(y < 0) - y += 191; + y += 192; // If RTL isn't forced, check for RTL text if(!rtl) {