diff options
author | Kurausukun <lord.uber1@gmail.com> | 2021-05-02 20:56:30 -0400 |
---|---|---|
committer | huderlem <huderlem@gmail.com> | 2021-05-13 11:26:15 -0500 |
commit | dfd87e09f95910c6ce3b0b9d955e179d6d65951f (patch) | |
tree | d211b1a9ff655198870c49673d96f1b7d4d384da /gflib/text.c | |
parent | 9a195c0fef7a47e5ab55c7047d80969c9cd6e44e (diff) |
[LEAK-INFORMED] fix text.c "eff" fakematch
Diffstat (limited to 'gflib/text.c')
-rw-r--r-- | gflib/text.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gflib/text.c b/gflib/text.c index 445a7b1be..eb993c421 100644 --- a/gflib/text.c +++ b/gflib/text.c @@ -1632,8 +1632,7 @@ void DecompressGlyphFont7(u16 glyphId, bool32 isJapanese) if (isJapanese == TRUE) { - int eff; - glyphs = gFont1JapaneseGlyphs + (0x100 * (glyphId >> 0x4)) + (0x8 * (glyphId & (eff = 0xF))); // shh, no questions, only matching now + glyphs = gFont1JapaneseGlyphs + (0x100 * (glyphId >> 0x4)) + (0x8 * (glyphId % 0x10)); DecompressGlyphTile(glyphs, gCurGlyph.gfxBufferTop); DecompressGlyphTile(glyphs + 0x80, gCurGlyph.gfxBufferBottom); gCurGlyph.width = 8; @@ -1761,8 +1760,7 @@ void DecompressGlyphFont1(u16 glyphId, bool32 isJapanese) if (isJapanese == TRUE) { - int eff; - glyphs = gFont1JapaneseGlyphs + (0x100 * (glyphId >> 0x4)) + (0x8 * (glyphId & (eff = 0xF))); // shh, no questions, only matching now + glyphs = gFont1JapaneseGlyphs + (0x100 * (glyphId >> 0x4)) + (0x8 * (glyphId % 0x10)); DecompressGlyphTile(glyphs, gCurGlyph.gfxBufferTop); DecompressGlyphTile(glyphs + 0x80, gCurGlyph.gfxBufferBottom); gCurGlyph.width = 8; |