diff options
author | PikalaxALT <pikalax1@gmail.com> | 2017-09-22 00:01:07 -0400 |
---|---|---|
committer | PikalaxALT <pikalax1@gmail.com> | 2017-09-22 00:01:07 -0400 |
commit | aa64f61b84d6b52f4073cf9acef1a927cd9010e6 (patch) | |
tree | e354ee825e7c31932c0347522b883b8541b48a7d /src | |
parent | 15212c4f8d80b4e15b20d0594d890fe1e803bc0e (diff) |
Finish decomp of unk_text_util_2
Diffstat (limited to 'src')
-rw-r--r-- | src/unk_text_util_2.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/unk_text_util_2.c b/src/unk_text_util_2.c index 23f3ca1b6..d9bd9d98d 100644 --- a/src/unk_text_util_2.c +++ b/src/unk_text_util_2.c @@ -5,8 +5,9 @@ #include "sound.h" extern const u8 gUnknown_08616124[]; +extern const u16 gFont6BrailleGlyphs[]; -void DecompressGlyphFont6(u16); +static void DecompressGlyphFont6(u16); u16 Font6Func(struct TextPrinter *textPrinter) { @@ -198,3 +199,21 @@ u16 Font6Func(struct TextPrinter *textPrinter) } return 1; } + +static void DecompressGlyphFont6(u16 glyph) +{ + const u16 *glyphs; + + glyphs = gFont6BrailleGlyphs + 0x100 * (glyph / 8) + 0x10 * (glyph % 8); + DecompressGlyphTile(glyphs, (u16 *)gUnknown_03002F90); + DecompressGlyphTile(glyphs + 0x8, (u16 *)(gUnknown_03002F90 + 0x20)); + DecompressGlyphTile(glyphs + 0x80, (u16 *)(gUnknown_03002F90 + 0x40)); + DecompressGlyphTile(glyphs + 0x88, (u16 *)(gUnknown_03002F90 + 0x60)); + gUnknown_03002F90[0x80] = 0x10; + gUnknown_03002F90[0x81] = 0x10; +} + +u8 GetGlyphWidthFont6(void) +{ + return 0x10; +} |