From 9394b853cb43cb8c691ef9d67280c56c67ca1f9f Mon Sep 17 00:00:00 2001 From: otya128 Date: Sat, 22 Aug 2015 22:19:02 +0900 Subject: [PATCH] =?UTF-8?q?GCOLOR=E3=81=AE=E5=88=9D=E6=9C=9F=E5=80=A4?= =?UTF-8?q?=E3=82=92=E7=99=BD=E3=81=AB=E3=81=97=E3=81=9F.GCLS=E3=81=AE?= =?UTF-8?q?=E5=BC=95=E6=95=B0=E3=82=92=E7=9C=81=E7=95=A5=E3=81=97=E3=81=9F?= =?UTF-8?q?=E3=81=A8=E3=81=8DGCOLOR=E3=82=92=E4=BD=BF=E7=94=A8=E3=81=97?= =?UTF-8?q?=E3=81=A6=E3=81=84=E3=81=9F=E3=83=90=E3=82=B0=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SMILEBASIC/builtinfunctions.d | 2 +- SMILEBASIC/petitcomputer.d | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SMILEBASIC/builtinfunctions.d b/SMILEBASIC/builtinfunctions.d index fb1ac05..e65d17f 100644 --- a/SMILEBASIC/builtinfunctions.d +++ b/SMILEBASIC/builtinfunctions.d @@ -139,7 +139,7 @@ class BuiltinFunction } 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); } static void GPSET(PetitComputer p, int x, int y, DefaultValue!(int, false) color) diff --git a/SMILEBASIC/petitcomputer.d b/SMILEBASIC/petitcomputer.d index 91b49ff..b3bfd24 100644 --- a/SMILEBASIC/petitcomputer.d +++ b/SMILEBASIC/petitcomputer.d @@ -152,7 +152,7 @@ class PetitComputer bool visibleGRP = true; int showGRP; int useGRP; - uint gcolor; + uint gcolor = -1; GraphicPage[] GRP; GraphicPage GRPF; GraphicPage[] GRPFColor;