diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-10-29 18:15:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-29 18:15:16 -0400 |
commit | 8c2b401bb3edf5c88c160ca9391cea29fa775a47 (patch) | |
tree | b1baaccdec0c5e7c9d6e8171cfede558d929578b /gflib/text.c | |
parent | af4d6dd8f06021dffd240ef2ee187e7b1f126cde (diff) | |
parent | 7574af35588c5025bcf46759501b16d25956f35f (diff) |
Merge pull request #1533 from LOuroboros/fontControl
Renamed "SIZE" text controller
Diffstat (limited to 'gflib/text.c')
-rw-r--r-- | gflib/text.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gflib/text.c b/gflib/text.c index eb993c421..e3043230b 100644 --- a/gflib/text.c +++ b/gflib/text.c @@ -906,7 +906,7 @@ u16 RenderText(struct TextPrinter *textPrinter) case EXT_CTRL_CODE_PALETTE: textPrinter->printerTemplate.currentChar++; return 2; - case EXT_CTRL_CODE_SIZE: + case EXT_CTRL_CODE_FONT: subStruct->glyphId = *textPrinter->printerTemplate.currentChar; textPrinter->printerTemplate.currentChar++; return 2; @@ -1170,7 +1170,7 @@ u32 GetStringWidthFixedWidthFont(const u8 *str, u8 fontId, u8 letterSpacing) case EXT_CTRL_CODE_HIGHLIGHT: case EXT_CTRL_CODE_SHADOW: case EXT_CTRL_CODE_PALETTE: - case EXT_CTRL_CODE_SIZE: + case EXT_CTRL_CODE_FONT: case EXT_CTRL_CODE_PAUSE: case EXT_CTRL_CODE_ESCAPE: case EXT_CTRL_CODE_SHIFT_TEXT: @@ -1319,7 +1319,7 @@ s32 GetStringWidth(u8 fontId, const u8 *str, s16 letterSpacing) case EXT_CTRL_CODE_SHIFT_DOWN: ++str; break; - case EXT_CTRL_CODE_SIZE: + case EXT_CTRL_CODE_FONT: func = GetFontWidthFunc(*++str); if (func == NULL) return 0; @@ -1449,7 +1449,7 @@ u8 RenderTextFont9(u8 *pixels, u8 fontId, u8 *str) shadowColor = strLocal[strPos++]; GenerateFontHalfRowLookupTable(fgColor, bgColor, shadowColor); continue; - case EXT_CTRL_CODE_SIZE: + case EXT_CTRL_CODE_FONT: fontId = strLocal[strPos++]; break; case EXT_CTRL_CODE_PLAY_BGM: |