Implement BGCOLOR

This commit is contained in:
otya128 committed 2017-07-22 13:16:11 +09:00
1 parent 5995fcb7b4
commit ad67a5d187
2 files changed
+31 -1

No files matched your search

+16
View File
@@ -2782,6 +2782,22 @@ class BuiltinFunction
throw new IllegalFunctionCall("BGUNC"/*, 2*/);
p.getBG(layer).callback = callback;
}
static void BGCOLOR(PetitComputer p, int layer, int color)
{
if (!p.isValidLayer(layer))
{
throw new OutOfRange("BGFUNC", 1);
}
p.getBG(layer).color = color;
}
static int BGCOLOR(PetitComputer p, int layer)
{
if (!p.isValidLayer(layer))
{
throw new OutOfRange("BGFUNC", 1);
}
return p.getBG(layer).color;
}
static void EFCON()
{
}