1
0

Fix COLOR

This commit is contained in:
otya128
2016-12-15 17:47:31 +09:00
parent a40cc6af61
commit 6c07f0310e
2 changed files with 29 additions and 11 deletions

View File

@@ -245,10 +245,10 @@ class BuiltinFunction
}
static void COLOR(PetitComputer p, DefaultValue!int fore, DefaultValue!(int, false) back)
{
fore.setDefaultValue(p.console.consoleForeColor);
back.setDefaultValue(p.console.consoleBackColor);
p.console.consoleForeColor = cast(int)fore;
p.console.consoleBackColor = cast(int)back;
fore.setDefaultValue(p.console.foreColor);
back.setDefaultValue(p.console.backColor);
p.console.foreColor = cast(int)fore;
p.console.backColor = cast(int)back;
}
static void ATTR(PetitComputer p, int attr)
{