diff options
author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2019-10-02 09:18:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-02 09:18:48 -0400 |
commit | 9317d114a94f978548eb3d664e1bb325724d5ed8 (patch) | |
tree | 260825bffe542d3a4b4c057c5ed86fab5621945a /src/berry_tag_screen.c | |
parent | 301822603ea19ee69b9bd64b266e51a8ed9b7c04 (diff) | |
parent | c5cb45991b65f7e4a5cfc39816a214085f740a7b (diff) |
Merge pull request #823 from GriffinRichards/constants-strconv
Use STR_CONV constants
Diffstat (limited to 'src/berry_tag_screen.c')
-rw-r--r-- | src/berry_tag_screen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/berry_tag_screen.c b/src/berry_tag_screen.c index 07daafd52..e7f6291c4 100644 --- a/src/berry_tag_screen.c +++ b/src/berry_tag_screen.c @@ -401,7 +401,7 @@ static void PrintAllBerryData(void) static void PrintBerryNumberAndName(void) { const struct Berry *berry = GetBerryInfo(sBerryTag->berryId); - ConvertIntToDecimalStringN(gStringVar1, sBerryTag->berryId, 2, 2); + ConvertIntToDecimalStringN(gStringVar1, sBerryTag->berryId, STR_CONV_MODE_LEADING_ZEROS, 2); StringCopy(gStringVar2, berry->name); StringExpandPlaceholders(gStringVar4, gText_UnkF908Var1Var2); PrintTextInBerryTagScreen(WIN_BERRY_NAME, gStringVar4, 0, 1, 0, 0); @@ -421,8 +421,8 @@ static void PrintBerrySize(void) fraction = (inches % 100) / 10; inches /= 100; - ConvertIntToDecimalStringN(gStringVar1, inches, 0, 2); - ConvertIntToDecimalStringN(gStringVar2, fraction, 0, 2); + ConvertIntToDecimalStringN(gStringVar1, inches, STR_CONV_MODE_LEFT_ALIGN, 2); + ConvertIntToDecimalStringN(gStringVar2, fraction, STR_CONV_MODE_LEFT_ALIGN, 2); StringExpandPlaceholders(gStringVar4, gText_Var1DotVar2); AddTextPrinterParameterized(WIN_SIZE_FIRM, 1, gStringVar4, 0x28, 1, 0, NULL); } |