Fix strange build issue

This commit is contained in:
Bepis committed 2021-01-25 02:43:09 +11:00
1 parent 6acfa16d31
commit cdc8ec560b
1 file changed
+2 -2
+2 -2
View File
@@ -1,4 +1,4 @@
using System;
using System;
using System.Runtime.InteropServices;
#if NET35
@@ -103,7 +103,7 @@ namespace BepInEx.ConsoleUtil
if (!flag)
return;
var num = bufferInfo.wAttributes;
num &= isBackground ? -241 : -16;
num &= isBackground ? (short)-241 : (short)-16;
num = (short) ((ushort) num | (ushort) color);
SetConsoleTextAttribute(conOut, num);
}