mirror of https://github.com/espruino/BangleApps
widadjust: reverse hide check
parent
5e223c24a1
commit
b21f495cbf
|
@ -85,15 +85,16 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function draw() {
|
function draw() {
|
||||||
if (settings.hide !== true) {
|
if (settings.hide === true) {
|
||||||
g.reset().setFont('6x8').setFontAlign(0, 0);
|
return;
|
||||||
g.clearRect(this.x, this.y, this.x + WIDTH - 1, this.y + 23);
|
}
|
||||||
g.drawString(Math.round(clockError), this.x + WIDTH/2, this.y + 9);
|
g.reset().setFont('6x8').setFontAlign(0, 0);
|
||||||
|
g.clearRect(this.x, this.y, this.x + WIDTH - 1, this.y + 23);
|
||||||
|
g.drawString(Math.round(clockError), this.x + WIDTH/2, this.y + 9);
|
||||||
|
|
||||||
if (lastPpm !== null) {
|
if (lastPpm !== null) {
|
||||||
g.setFont('4x6').setFontAlign(0, 1);
|
g.setFont('4x6').setFontAlign(0, 1);
|
||||||
g.drawString(lastPpm.toFixed(1), this.x + WIDTH/2, this.y + 23);
|
g.drawString(lastPpm.toFixed(1), this.x + WIDTH/2, this.y + 23);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue