Fix widclkmod
parent
d51e6180f1
commit
d059e03d89
|
|
@ -7,7 +7,7 @@ WIDGETS["wdclkmod"]={area:"tl",width:Bangle.CLOCK?0:52/* g.stringWidth("00:00")
|
||||||
return setTimeout(Bangle.drawWidgets,1); // widget changed size - redraw
|
return setTimeout(Bangle.drawWidgets,1); // widget changed size - redraw
|
||||||
}
|
}
|
||||||
if (!this.width) return; // if not visible, return
|
if (!this.width) return; // if not visible, return
|
||||||
g.reset().setFont("6x15").setFontAlign(0,0);
|
g.reset().setFont("12x20").setFontAlign(0,0);
|
||||||
var time = require("locale").time(new Date(),1);
|
var time = require("locale").time(new Date(),1);
|
||||||
g.clearRect(this.x, this.y, this.x+this.width-1, this.y+23).drawString(time, this.x+this.width/2, this.y+12); // 5 * 6*2 = 60
|
g.clearRect(this.x, this.y, this.x+this.width-1, this.y+23).drawString(time, this.x+this.width/2, this.y+12); // 5 * 6*2 = 60
|
||||||
// queue draw in one minute
|
// queue draw in one minute
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue