summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo Quezada D'Ottone <eduardo602002@gmail.com>2022-02-19 22:43:24 -0300
committerEduardo Quezada D'Ottone <eduardo602002@gmail.com>2022-02-19 22:43:24 -0300
commit8aefab01eafe4d18268e5ee347510b4c7f179873 (patch)
tree72db7e59229b4a30e2d67c0ebe9f524087b765d4
parent58377e0609acc3ed0e69cd8cf781332e82c95257 (diff)
Updated with current codebase
-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 782ec89..dd25632 100644
--- a/Implement-Missing-Text-Function-RESET_SIZE.md
+++ b/Implement-Missing-Text-Function-RESET_SIZE.md
@@ -1,8 +1,8 @@
-The text printer in Emerald is very versatile and has a lot of control codes. But it seems Game Freak skipped implementing one of the control codes in the release of the game, since it was likely never used. There's a control code that pokeemerald calls the `SIZE` control code, allowing you to change fonts (and thus font size) mid-text. But there's another control code right after that called the `RESET_SIZE` control code that does nothing. Here's how to implement it:
+The text printer in Emerald is very versatile and has a lot of control codes. But it seems Game Freak skipped implementing one of the control codes in the release of the game, since it was likely never used. There's a control code that pokeemerald calls the `FONT` control code, allowing you to change fonts (and thus font size) mid-text. But there's another control code right after that called the `RESET_SIZE` control code that does nothing. Here's how to implement it:
Go to [gflib/text.c](https://github.com/pret/pokeemerald/blob/master/gflib/text.c), find the function `RenderText` and add the following:
```diff
- case EXT_CTRL_CODE_SIZE:
+ case EXT_CTRL_CODE_FONT:
subStruct->fontId = *textPrinter->printerTemplate.currentChar;
textPrinter->printerTemplate.currentChar++;
return RENDER_REPEAT;