From d1d4941708d7fea87100c29490a31f9c6ba0910e Mon Sep 17 00:00:00 2001 From: Aviv Beeri Date: Wed, 1 Mar 2023 06:31:57 +0000 Subject: [PATCH] Small fix --- src/main.c | 8 ++++---- src/modules/font.c | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main.c b/src/main.c index 7778c67b..e1d2e599 100644 --- a/src/main.c +++ b/src/main.c @@ -327,12 +327,12 @@ int main(int argc, char* argv[]) freopen("CONOUT$", "w", stdout); freopen("CONOUT$", "w", stderr); - stdINConsole = GetStdHandle(STD_OUTPUT_HANDLE); + HANDLE stdOutConsole = GetStdHandle(STD_OUTPUT_HANDLE); if (INVALID_HANDLE_VALUE) { - &engine->logColor = false; + engine.logColor = false; } else { - &engine->logColor = true; - SetConsoleMode((stdInConsole, ENABLE_VIRTUAL_TERMINAL_PROCESSING); + engine.logColor = true; + SetConsoleMode((stdOutConsole, ENABLE_VIRTUAL_TERMINAL_PROCESSING); } } break; #endif diff --git a/src/modules/font.c b/src/modules/font.c index c594d87f..dadbae19 100644 --- a/src/modules/font.c +++ b/src/modules/font.c @@ -186,7 +186,6 @@ FONT_RASTER_getArea(WrenVM* vm) { // Account for the final line being shorter. maxX = max(maxX, posX); - wrenEnsureSlots(vm, 2); wrenSetSlotNewList(vm, 0); wrenSetSlotDouble(vm, 1, maxX);