console: Adjust for wide mode

This commit is contained in:
fincs 2020-06-13 22:49:52 +02:00
parent d521c99769
commit 5ac710a0a2
No known key found for this signature in database
GPG Key ID: 62C7609ADA219C60

View File

@ -554,11 +554,11 @@ PrintConsole* consoleInit(gfxScreen_t screen, PrintConsole* console) {
console->frameBuffer = (u16*)gfxGetFramebuffer(screen, GFX_LEFT, NULL, NULL);
if(screen==GFX_TOP) {
console->consoleWidth = 50;
console->windowWidth = 50;
bool isWide = gfxIsWide();
console->consoleWidth = isWide ? 100 : 50;
console->windowWidth = isWide ? 100 : 50;
}
consoleCls('2');
return currentConsole;