GCOLORの初期値を白にした.GCLSの引数を省略したときGCOLORを使用していたバグを修正
This commit is contained in:
@@ -139,7 +139,7 @@ class BuiltinFunction
|
|||||||
}
|
}
|
||||||
static void GCLS(PetitComputer p, DefaultValue!(int, false) color)
|
static void GCLS(PetitComputer p, DefaultValue!(int, false) color)
|
||||||
{
|
{
|
||||||
color.setDefaultValue(p.gcolor);
|
color.setDefaultValue(0);
|
||||||
p.gfill(p.useGRP, 0, 0, 511, 511, cast(int)color);
|
p.gfill(p.useGRP, 0, 0, 511, 511, cast(int)color);
|
||||||
}
|
}
|
||||||
static void GPSET(PetitComputer p, int x, int y, DefaultValue!(int, false) color)
|
static void GPSET(PetitComputer p, int x, int y, DefaultValue!(int, false) color)
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ class PetitComputer
|
|||||||
bool visibleGRP = true;
|
bool visibleGRP = true;
|
||||||
int showGRP;
|
int showGRP;
|
||||||
int useGRP;
|
int useGRP;
|
||||||
uint gcolor;
|
uint gcolor = -1;
|
||||||
GraphicPage[] GRP;
|
GraphicPage[] GRP;
|
||||||
GraphicPage GRPF;
|
GraphicPage GRPF;
|
||||||
GraphicPage[] GRPFColor;
|
GraphicPage[] GRPFColor;
|
||||||
|
|||||||
Reference in New Issue
Block a user