summaryrefslogtreecommitdiff
path: root/src/trader.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-11-03 13:56:22 -0400
committerGitHub <noreply@github.com>2021-11-03 13:56:22 -0400
commit3e49ac804b53cdb4d39b4f92de949eb858efcee4 (patch)
treef3598d27d0511ad5cd3457edeef60ef96cbb4305 /src/trader.c
parentafb9ff3a40dcfb2681ef274752bceb726d14b783 (diff)
parente14210ce1f9be3ae894490a4e3050832aecbdde7 (diff)
Merge branch 'master' into doc-finalmisc
Diffstat (limited to 'src/trader.c')
-rw-r--r--src/trader.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/trader.c b/src/trader.c
index 98b4f464c..c65d5ff87 100644
--- a/src/trader.c
+++ b/src/trader.c
@@ -59,15 +59,15 @@ void CreateAvailableDecorationsMenu(u8 taskId)
s16 * data = gTasks[taskId].data;
struct MauvilleOldManTrader *trader = &gSaveBlock1Ptr->oldMan.trader;
struct WindowTemplate windowTemplate = {0, 1, 1, 10, 10, 15, 1};
- s32 windowWidth = GetStringWidth(1, gText_Exit, 0);
- s32 fiveMarksWidth = GetStringWidth(1, gText_FiveMarks, 0);
+ s32 windowWidth = GetStringWidth(FONT_NORMAL, gText_Exit, 0);
+ s32 fiveMarksWidth = GetStringWidth(FONT_NORMAL, gText_FiveMarks, 0);
for (i = 0; i < 4; i++)
{
s32 curWidth;
if (trader->decorations[i] > NUM_DECORATIONS)
curWidth = fiveMarksWidth;
else
- curWidth = GetStringWidth(1, gDecorations[trader->decorations[i]].name, 0);
+ curWidth = GetStringWidth(FONT_NORMAL, gDecorations[trader->decorations[i]].name, 0);
if (curWidth > windowWidth)
windowWidth = curWidth;
}
@@ -77,11 +77,11 @@ void CreateAvailableDecorationsMenu(u8 taskId)
for (i = 0; i < 4; i++)
{
if (trader->decorations[i] > NUM_DECORATIONS)
- AddTextPrinterParameterized(data[3], 1, gText_FiveMarks, 8, 16 * i + 1, 255, NULL);
+ AddTextPrinterParameterized(data[3], FONT_NORMAL, gText_FiveMarks, 8, 16 * i + 1, 255, NULL);
else
- AddTextPrinterParameterized(data[3], 1, gDecorations[trader->decorations[i]].name, 8, 16 * i + 1, 255, NULL);
+ AddTextPrinterParameterized(data[3], FONT_NORMAL, gDecorations[trader->decorations[i]].name, 8, 16 * i + 1, 255, NULL);
}
- AddTextPrinterParameterized(data[3], 1, gText_Exit, 8, 16 * i + 1, 255, NULL);
+ AddTextPrinterParameterized(data[3], FONT_NORMAL, gText_Exit, 8, 16 * i + 1, 255, NULL);
InitMenuInUpperLeftCornerPlaySoundWhenAPressed(data[3], 5, 0);
ScheduleBgCopyTilemapToVram(0);
}