Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
avivbeeri committed Mar 1, 2023
1 parent ebfe98f commit d1d4941
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/modules/font.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d1d4941

Please sign in to comment.