Implement BGROT(2)
This commit is contained in:
@@ -2378,7 +2378,7 @@ class BuiltinFunction
|
||||
}
|
||||
p.getBG(layer).scale(x, y);
|
||||
}
|
||||
static void BGROT(PetitComputer p, int layer, double rot)
|
||||
static void BGROT(PetitComputer p, int layer, int rot)
|
||||
{
|
||||
if (!p.isValidLayer(layer))
|
||||
{
|
||||
@@ -2386,6 +2386,14 @@ class BuiltinFunction
|
||||
}
|
||||
p.getBG(layer).rot(rot);
|
||||
}
|
||||
static int BGROT(PetitComputer p, int layer)
|
||||
{
|
||||
if (!p.isValidLayer(layer))
|
||||
{
|
||||
throw new OutOfRange(smilebasicFunctionName, 1);
|
||||
}
|
||||
return p.getBG(layer).rot;
|
||||
}
|
||||
static void BGFILL(PetitComputer p, int layer, int x, int y, int x2, int y2, int screendata)
|
||||
{
|
||||
if (!p.isValidLayer(layer))
|
||||
|
||||
Reference in New Issue
Block a user