diff options
author | Diegoisawesome <Diegoisawesome@users.noreply.github.com> | 2017-11-27 18:39:50 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-27 18:39:50 -0600 |
commit | 18c6b8efc21a509121ab4d6f5b9c8523689d27a2 (patch) | |
tree | 5bb4654fc046f43f0cc3a24ac0f919512afda810 /src/text.c | |
parent | db87e2db4cba56a78842f4f651656c0ed62ab27b (diff) | |
parent | e8b1059345c87b15c74262b2a761e5c7be526a5f (diff) |
Merge pull request #120 from PikalaxALT/unk_text_util
Decompile asm/unk_text_util.s
Diffstat (limited to 'src/text.c')
-rw-r--r-- | src/text.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/text.c b/src/text.c index 7d688801c..a13ed162d 100644 --- a/src/text.c +++ b/src/text.c @@ -13,7 +13,7 @@ extern void CopyWindowToVram(u8 windowId, u8 mode); extern u16 Font6Func(struct TextPrinter *textPrinter); extern u32 GetGlyphWidthFont6(u16 glyphId, bool32 isJapanese); extern void PlaySE(u16 songNum); -extern u8* sub_81AFC74(u8 a1); +extern u8* UnkTextUtil_GetPtrI(u8 a1); EWRAM_DATA struct TextPrinter gTempTextPrinter = {0}; EWRAM_DATA struct TextPrinter gTextPrinters[NUM_TEXT_PRINTERS] = {0}; @@ -2932,7 +2932,7 @@ u32 GetStringWidth(u8 fontId, const u8 *str, s16 letterSpacing) } case 0xF7: if (bufferPointer == NULL) - bufferPointer = sub_81AFC74(*++str); + bufferPointer = UnkTextUtil_GetPtrI(*++str); while (*bufferPointer != 0xFF) { glyphWidth = func(*bufferPointer++, isJapanese); |