summaryrefslogtreecommitdiff
path: root/Implement-Missing-Text-Function-RESET_SIZE.md
diff options
context:
space:
mode:
authorjrz <93400052+jrz3@users.noreply.github.com>2021-11-13 08:56:40 -0600
committerjrz <93400052+jrz3@users.noreply.github.com>2021-11-13 08:56:40 -0600
commit290391ed454ff552ade189a638d54fcce55efe2a (patch)
tree34ff427ae53aa2445f748fba4b7a4aa4b27f1f48 /Implement-Missing-Text-Function-RESET_SIZE.md
parenta3a462d7447cdd0fde7cb0408c76a66368b063b4 (diff)
Updated tutorial to use defines added in this commit: 50d3003a0d66b30fa1bf50b33e1a7de6263dca5d
Diffstat (limited to 'Implement-Missing-Text-Function-RESET_SIZE.md')
-rw-r--r--Implement-Missing-Text-Function-RESET_SIZE.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/Implement-Missing-Text-Function-RESET_SIZE.md b/Implement-Missing-Text-Function-RESET_SIZE.md
index f1a0107..782ec89 100644
--- a/Implement-Missing-Text-Function-RESET_SIZE.md
+++ b/Implement-Missing-Text-Function-RESET_SIZE.md
@@ -5,10 +5,10 @@ Go to [gflib/text.c](https://github.com/pret/pokeemerald/blob/master/gflib/text.
case EXT_CTRL_CODE_SIZE:
subStruct->fontId = *textPrinter->printerTemplate.currentChar;
textPrinter->printerTemplate.currentChar++;
- return 2;
+ return RENDER_REPEAT;
case EXT_CTRL_CODE_RESET_SIZE:
+ subStruct->fontId = textPrinter->printerTemplate.fontId;
- return 2;
+ return RENDER_REPEAT;
```
Further down the same file, find the function `GetStringWidth` and add the following as well: