Add WIDTH stub
This commit is contained in:
1 parent
f172fce38f
commit
acc5c19043
2 files changed
+15
No files matched your search
@@ -238,6 +238,18 @@ class BuiltinFunction
|
||||
throw new OutOfRange("ATTR", 1);
|
||||
p.console.attr = cast(otya.smilebasic.console.ConsoleAttribute)attr;
|
||||
}
|
||||
static void WIDTH(PetitComputer p, int width)
|
||||
{
|
||||
if (width != 8 && width != 16)
|
||||
{
|
||||
throw new IllegalFunctionCall("WIDTH", 1);
|
||||
}
|
||||
p.console.width = width;
|
||||
}
|
||||
static int WIDTH(PetitComputer p)
|
||||
{
|
||||
return p.console.width;
|
||||
}
|
||||
static void VSYNC(PetitComputer p, DefaultValue!int time)
|
||||
{
|
||||
time.setDefaultValue(1);
|
||||
|
||||
Reference in new issue
Block a user