1
0
Fork 0

do set color before the image draw

Image charging sometimes get displayed with the last app coller setting instead of white.
master
MaBecker 2019-11-13 13:41:56 +01:00
parent 7c276e3ac1
commit 0487c0f97b
1 changed files with 1 additions and 1 deletions

View File

@ -7,12 +7,12 @@ function draw() {
var s = 63;
var x = xpos, y = 0;
g.clearRect(x,y,x+s,y+23);
g.setColor(1,1,1);
if (Bangle.isCharging()) {
g.drawImage(img_charge,x,y);
x+=16;
s-=16;
}
g.setColor(1,1,1);
g.fillRect(x,y+2,x+s-4,y+21);
g.clearRect(x+2,y+4,x+s-6,y+19);
g.fillRect(x+s-3,y+10,x+s,y+14);