Some optimizations

I wish there was a cleaner way of doing this
This commit is contained in:
Ne_Eo
2024-10-18 02:50:41 +02:00
parent 2b81220c15
commit 2bfc58ccb0
22 changed files with 75 additions and 72 deletions
+2 -2
View File
@@ -113,8 +113,8 @@ class NativeAPI {
if(backgroundColor == NONE)
backgroundColor = BLACK;
var fg = cast(foregroundColor, Int);
var bg = cast(backgroundColor, Int);
var fg:Int = cast foregroundColor;
var bg:Int = cast backgroundColor;
Windows.setConsoleColors((bg * 16) + fg);
#elseif sys
Sys.print("\x1b[0m");