diff options
author | Marcus Huderle <huderlem@gmail.com> | 2018-11-24 10:45:15 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-24 10:45:15 -0600 |
commit | 80116a80fd98679c0449efe33c4e460947f4b8d0 (patch) | |
tree | 312a72b8513694aab4db01941cc5d2b37b53dd4e /src/text.c | |
parent | 2ed26ab8fcd4e302ab4aac6bb01dba7b5c985914 (diff) | |
parent | bc6416ddd96182d5f786add8d1c1945a2f82f2b9 (diff) |
Merge pull request #22 from PikalaxALT/quest_log
Quest log
Diffstat (limited to 'src/text.c')
-rw-r--r-- | src/text.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/text.c b/src/text.c index 7fb0ab034..d4d25b5aa 100644 --- a/src/text.c +++ b/src/text.c @@ -1479,17 +1479,17 @@ u32 GetStringWidthFixedWidthFont(const u8 *str, u8 fontId, u8 letterSpacing) return (u8)(GetFontAttribute(fontId, 0) + letterSpacing) * width; } -u32 (*GetFontWidthFunc(u8 glyphId))(u16, bool32) +u32 (*GetFontWidthFunc(u8 glyphId))(u16 _glyphId, bool32 _isJapanese) { u32 i; for (i = 0; i < 7; ++i) { if (glyphId == gGlyphWidthFuncs[i].font_id) - return gGlyphWidthFuncs[i].func; + return *gGlyphWidthFuncs[i].func; } - return 0; + return NULL; } u32 GetStringWidth(u8 fontId, const u8 *str, s16 letterSpacing) |