mirror of
https://github.com/GearsProgress/Poke_Transporter_GB.git
synced 2026-08-22 08:45:16 -05:00
Compressing underscores with escape characters
This commit is contained in:
@@ -341,13 +341,18 @@ int ptgb_write(const byte *text, bool instant, int length)
|
||||
wait_for_user_to_continue(true);
|
||||
break;
|
||||
case 0xFC:
|
||||
ch = *str;
|
||||
str++;
|
||||
num += 1;
|
||||
if (DISPLAY_CONTROL_CHAR)
|
||||
{
|
||||
tc->drawgProc(0xB9);
|
||||
for (uint i = 0; i < ch; i++){
|
||||
tc->drawgProc(0xB9);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
tc->cursorX += tc->font->widths[0xFC];
|
||||
tc->cursorX += tc->font->widths[0xFC] * ch;
|
||||
}
|
||||
break;
|
||||
case 0xFE:
|
||||
|
||||
Reference in New Issue
Block a user