re-match GLYPH_COPY

This commit is contained in:
Kurausukun
2020-10-21 04:26:45 -04:00
parent 5fd555016f
commit 063596d87b
3 changed files with 79 additions and 808 deletions
+74 -803
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -366,8 +366,8 @@ struct Struct_03002F90
u32 unk20[8]; u32 unk20[8];
u32 unk40[8]; u32 unk40[8];
u32 unk60[8]; u32 unk60[8];
u8 unk80; u8 width;
u8 unk81; u8 height;
}; };
extern TextFlags gTextFlags; extern TextFlags gTextFlags;
+3 -3
View File
@@ -135,7 +135,7 @@ u16 Font6Func(struct TextPrinter *textPrinter)
} }
DecompressGlyphFont6(char_); DecompressGlyphFont6(char_);
CopyGlyphToWindow(textPrinter); CopyGlyphToWindow(textPrinter);
textPrinter->printerTemplate.currentX += gUnknown_03002F90.unk80 + textPrinter->printerTemplate.letterSpacing; textPrinter->printerTemplate.currentX += gUnknown_03002F90.width + textPrinter->printerTemplate.letterSpacing;
return 0; return 0;
case 1: case 1:
if (TextPrinterWait(textPrinter)) if (TextPrinterWait(textPrinter))
@@ -210,8 +210,8 @@ static void DecompressGlyphFont6(u16 glyph)
DecompressGlyphTile(glyphs + 0x8, (u16 *)(gUnknown_03002F90.unk20)); DecompressGlyphTile(glyphs + 0x8, (u16 *)(gUnknown_03002F90.unk20));
DecompressGlyphTile(glyphs + 0x80, (u16 *)(gUnknown_03002F90.unk40)); DecompressGlyphTile(glyphs + 0x80, (u16 *)(gUnknown_03002F90.unk40));
DecompressGlyphTile(glyphs + 0x88, (u16 *)(gUnknown_03002F90.unk60)); DecompressGlyphTile(glyphs + 0x88, (u16 *)(gUnknown_03002F90.unk60));
gUnknown_03002F90.unk80 = 0x10; gUnknown_03002F90.width = 0x10;
gUnknown_03002F90.unk81 = 0x10; gUnknown_03002F90.height = 0x10;
} }
u32 GetGlyphWidthFont6(u16 glyphId, bool32 isJapanese) u32 GetGlyphWidthFont6(u16 glyphId, bool32 isJapanese)