summaryrefslogtreecommitdiff
path: root/src/contest_util.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-11-03 13:17:29 -0400
committerGitHub <noreply@github.com>2021-11-03 13:17:29 -0400
commite14210ce1f9be3ae894490a4e3050832aecbdde7 (patch)
tree6f91b9a6be1ec65ee31fef1883882a0a458236ac /src/contest_util.c
parent0ba22ca1124bf5cf37ba2934fda4ec1a9cca02a6 (diff)
parent929aade0fd0e5ea0fba4e18650bda02e6a943ba5 (diff)
Merge pull request #1536 from GriffinRichards/clean-braille
Add font id constants, better braille support
Diffstat (limited to 'src/contest_util.c')
-rw-r--r--src/contest_util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/contest_util.c b/src/contest_util.c
index d3e1a600e..e1c95d4a2 100644
--- a/src/contest_util.c
+++ b/src/contest_util.c
@@ -1176,12 +1176,12 @@ static s32 DrawResultsTextWindow(const u8 *text, u8 spriteId)
windowId = AddWindow(&windowTemplate);
FillWindowPixelBuffer(windowId, PIXEL_FILL(1));
- origWidth = GetStringWidth(1, text, 0);
+ origWidth = GetStringWidth(FONT_NORMAL, text, 0);
strWidth = (origWidth + 9) / 8;
if (strWidth > 30)
strWidth = 30;
- AddTextPrinterParameterized3(windowId, 1, (strWidth * 8 - origWidth) / 2, 1, sContestLinkTextColors, -1, text);
+ AddTextPrinterParameterized3(windowId, FONT_NORMAL, (strWidth * 8 - origWidth) / 2, 1, sContestLinkTextColors, -1, text);
{
s32 i;
struct Sprite *sprite;
@@ -1931,7 +1931,7 @@ static void AddContestTextPrinter(int windowId, u8 *str, int x)
struct TextPrinterTemplate textPrinter;
textPrinter.currentChar = str;
textPrinter.windowId = windowId;
- textPrinter.fontId = 7;
+ textPrinter.fontId = FONT_NARROW;
textPrinter.x = x;
textPrinter.y = 2;
textPrinter.currentX = x;