386
edits
No edit summary |
|||
Line 46: | Line 46: | ||
char low = text[1]; | char low = text[1]; | ||
// Combine the two bytes, and clear the top bit | // Combine the two bytes, and clear the top bit | ||
int charIndex = ((high & 0x7f) << 8) | low | int charIndex = ((high & 0x7f) << 8) | low; | ||
// Each tile is | // Each tile is 0x20 bytes in size, a wide character is 2x2 tiles in size, | ||
// giving a total size of 0x80 bytes per character | // giving a total size of 0x80 bytes per character | ||
u8* tileStart = (u8*)font + font->offsetToWideChars + charIndex*0x80; | u8* tileStart = (u8*)font + font->offsetToWideChars + charIndex*0x80; |