Fix COLOR

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

No files matched your search

+4 -4
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)
{