summaryrefslogtreecommitdiff
path: root/Implement-Missing-Text-Function-RESET_SIZE.md
diff options
context:
space:
mode:
authorTrainerX493 <47459767+TrainerX493@users.noreply.github.com>2020-12-20 12:31:43 -0700
committerTrainerX493 <47459767+TrainerX493@users.noreply.github.com>2020-12-20 12:31:43 -0700
commit323c8e1a5ffb8d7ca9ab6ccfd5295f335cd92b62 (patch)
treeb1227aea3d7f48617a83fd3ab12fc50cf83d8fa9 /Implement-Missing-Text-Function-RESET_SIZE.md
parent3e265baeca43a08d3a7ff8acf3bfed69ca985293 (diff)
Added info on were the file actually is.
Diffstat (limited to 'Implement-Missing-Text-Function-RESET_SIZE.md')
-rw-r--r--Implement-Missing-Text-Function-RESET_SIZE.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/Implement-Missing-Text-Function-RESET_SIZE.md b/Implement-Missing-Text-Function-RESET_SIZE.md
index 205036a..bd780c5 100644
--- a/Implement-Missing-Text-Function-RESET_SIZE.md
+++ b/Implement-Missing-Text-Function-RESET_SIZE.md
@@ -1,6 +1,6 @@
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:
-In the text.c, find the function `RenderText` and add the following:
+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:
subStruct->glyphId = *textPrinter->printerTemplate.currentChar;