Fix widclkmod

master
Bryan 2023-12-31 18:06:03 -06:00
parent d51e6180f1
commit d059e03d89
1 changed files with 1 additions and 1 deletions

View File

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