summaryrefslogtreecommitdiff
path: root/gflib/text.c
diff options
context:
space:
mode:
authorKurausukun <lord.uber1@gmail.com>2021-03-19 18:49:19 -0400
committerKurausukun <lord.uber1@gmail.com>2021-03-19 18:49:19 -0400
commit7198d40ec8dac00e3fc5b0d2ae01741fd12aea0e (patch)
treeae35f7d910c67423d5a3c2889fdc5c3e655ff6b2 /gflib/text.c
parent5b910a11b4f6d548b6643455ccb806c0e60f48a2 (diff)
port some documentation from FR
Diffstat (limited to 'gflib/text.c')
-rw-r--r--gflib/text.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gflib/text.c b/gflib/text.c
index ffce2cb56..f07a2367a 100644
--- a/gflib/text.c
+++ b/gflib/text.c
@@ -1280,7 +1280,7 @@ s32 GetStringWidth(u8 fontId, const u8 *str, s16 letterSpacing)
default:
return 0;
}
- case CHAR_DYNAMIC:
+ case CHAR_SPECIAL_F7:
if (bufferPointer == NULL)
bufferPointer = DynamicPlaceholderTextUtil_GetPlaceholderPtr(*++str);
while (*bufferPointer != EOS)
@@ -1398,8 +1398,7 @@ s32 GetStringWidth(u8 fontId, const u8 *str, s16 letterSpacing)
if (lineWidth > width)
return lineWidth;
- else
- return width;
+ return width;
}
u8 RenderTextFont9(u8 *pixels, u8 fontId, u8 *str)