Fix every internal_merge issues
This commit is contained in:
@@ -13,12 +13,6 @@ import flixel.util.FlxColor;
|
||||
* Some functions might not have effect on some platforms.
|
||||
*/
|
||||
class NativeAPI {
|
||||
@:dox(hide) public static function registerAudio() {
|
||||
#if windows
|
||||
Windows.registerAudio();
|
||||
#end
|
||||
}
|
||||
|
||||
@:dox(hide) public static function registerAsDPICompatible() {
|
||||
#if windows
|
||||
Windows.registerAsDPICompatible();
|
||||
@@ -185,16 +179,7 @@ class NativeAPI {
|
||||
public static function setConsoleColors(foregroundColor:ConsoleColor = NONE, ?backgroundColor:ConsoleColor = NONE) {
|
||||
if(Main.noTerminalColor) return;
|
||||
|
||||
#if (windows && !hl)
|
||||
if(foregroundColor == NONE)
|
||||
foregroundColor = LIGHTGRAY;
|
||||
if(backgroundColor == NONE)
|
||||
backgroundColor = BLACK;
|
||||
|
||||
var fg:Int = cast foregroundColor;
|
||||
var bg:Int = cast backgroundColor;
|
||||
Windows.setConsoleColors((bg * 16) + fg);
|
||||
#elseif sys
|
||||
#if sys
|
||||
Sys.print("\x1b[0m");
|
||||
if(foregroundColor != NONE)
|
||||
Sys.print("\x1b[" + Std.int(consoleColorToANSI(foregroundColor)) + "m");
|
||||
|
||||
Reference in New Issue
Block a user