1
0

GCOLORの初期値を白にした.GCLSの引数を省略したときGCOLORを使用していたバグを修正

This commit is contained in:
otya128
2015-08-22 22:19:02 +09:00
parent 8d4a9a2d13
commit 9394b853cb
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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;