summaryrefslogtreecommitdiff
path: root/src/text.c
diff options
context:
space:
mode:
authorProjectRevoTPP <projectrevotpp@hotmail.com>2017-05-09 02:36:30 -0400
committerProjectRevoTPP <projectrevotpp@hotmail.com>2017-05-09 02:36:30 -0400
commitfc761599b412206f80d961a6052dce49b9998689 (patch)
tree1f3eb8f01ae005b8b509d1f120ce5d7bce230992 /src/text.c
parentd343d1f19a74657489d987dbd97b84e7389ae295 (diff)
parent4b4f716ae0c582068928a4ae7b31d9d10ac89eb5 (diff)
Merge branch 'master' of https://github.com/pret/pokeruby
Diffstat (limited to 'src/text.c')
-rw-r--r--src/text.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/text.c b/src/text.c
index cc3dab547..7be72833a 100644
--- a/src/text.c
+++ b/src/text.c
@@ -2338,7 +2338,7 @@ u8 sub_8003490(struct Window *win, u8 c, u16 tileDataStartOffset, u8 left, u8 to
return retVal;
}
-void sub_80034D4(u8 *tileData, u8 *text)
+void sub_80034D4(u8 *tileData, const u8 *text)
{
sub_8004E3C((struct WindowConfig *)&gWindowConfig_81E6C74, tileData, text);
}
@@ -2474,12 +2474,18 @@ static u8 UpdateWindowText(struct Window *win)
return 0;
}
+#if defined(ENGLISH)
+#define SUB_800374C_LINE_LENGTH 26
+#elif defined(GERMAN)
+#define SUB_800374C_LINE_LENGTH 27
+#endif
+
u8 sub_800374C(struct Window *win)
{
u8 retVal;
sWaitType = 1;
- sLineLength = 26;
+ sLineLength = SUB_800374C_LINE_LENGTH;
retVal = UpdateWindowText(win);
sLineLength = 26;
sWaitType = 0;