summaryrefslogtreecommitdiff
path: root/src/international_string_util.c
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2021-11-03 20:49:14 -0400
committerGitHub <noreply@github.com>2021-11-03 20:49:14 -0400
commit7940f121f66bb0ebe0932bc642c3d9b4015f79a7 (patch)
tree12e56d31471fc2506a4d03c6ca1c52c717b6b6ff /src/international_string_util.c
parent6bdf6f25f4b24207cd17b25b5d7f4b68da48fcc0 (diff)
parent3e49ac804b53cdb4d39b4f92de949eb858efcee4 (diff)
Merge pull request #1539 from GriffinRichards/doc-finalmisc
Document files with a few remaining symbols
Diffstat (limited to 'src/international_string_util.c')
-rw-r--r--src/international_string_util.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/international_string_util.c b/src/international_string_util.c
index ef779c698..e4b793b66 100644
--- a/src/international_string_util.c
+++ b/src/international_string_util.c
@@ -214,10 +214,11 @@ int GetNicknameLanguage(u8 *str)
return GAME_LANGUAGE;
}
-void sub_81DB620(int windowId, int columnStart, int rowStart, int numFillTiles, int numRows)
+// Used by Pokénav's Match Call to erase the previous trainer's flavor text when switching between their info pages.
+void FillWindowTilesByRow(int windowId, int columnStart, int rowStart, int numFillTiles, int numRows)
{
u8 *windowTileData;
- int fillSize, windowRowSize, rowsToFill;
+ int fillSize, windowRowSize, i;
struct Window *window = &gWindows[windowId];
fillSize = numFillTiles * TILE_SIZE_4BPP;
@@ -225,12 +226,10 @@ void sub_81DB620(int windowId, int columnStart, int rowStart, int numFillTiles,
windowTileData = window->tileData + (rowStart * windowRowSize) + (columnStart * TILE_SIZE_4BPP);
if (numRows > 0)
{
- rowsToFill = numRows;
- while (rowsToFill)
+ for (i = numRows; i != 0; i--)
{
CpuFastFill8(0x11, windowTileData, fillSize);
windowTileData += windowRowSize;
- rowsToFill--;
}
}
}