Fix BGCLIP
This commit is contained in:
@@ -1465,18 +1465,13 @@ class BuiltinFunction
|
|||||||
z.setDefaultValue(p.getBG(layer).offsetz);
|
z.setDefaultValue(p.getBG(layer).offsetz);
|
||||||
p.getBG(layer).ofs(x, y, cast(int)z);
|
p.getBG(layer).ofs(x, y, cast(int)z);
|
||||||
}
|
}
|
||||||
static void BGCLIP(PetitComputer p, int layer, DefaultValue!(int, false) x, DefaultValue!(int, false) y,
|
static void BGCLIP(PetitComputer p, int layer)
|
||||||
DefaultValue!(int, false) x2, DefaultValue!(int, false) y2)
|
|
||||||
{
|
{
|
||||||
if(x.isDefault && y.isDefault && x2.isDefault && y2.isDefault)
|
p.getBG(layer).clip();
|
||||||
{
|
}
|
||||||
p.getBG(layer).clip();
|
static void BGCLIP(PetitComputer p, int layer, int x, int y, int x2, int y2)
|
||||||
}
|
{
|
||||||
if(x.isDefault || y.isDefault || x2.isDefault || y2.isDefault)
|
p.getBG(layer).clip(x, y, x2, y2);
|
||||||
{
|
|
||||||
throw new IllegalFunctionCall("BGCLIP");
|
|
||||||
}
|
|
||||||
p.getBG(layer).clip(cast(int)x, cast(int)y, cast(int)x2, cast(int)y2);
|
|
||||||
}
|
}
|
||||||
static void BGPUT(PetitComputer p, int layer, int x, int y, int screendata)
|
static void BGPUT(PetitComputer p, int layer, int x, int y, int screendata)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user