1
0

Implement BGCOLOR

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

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()
{
}