Update app.js

pull/1174/head
Andreas Rozek 2021-12-29 08:58:47 +01:00
parent 978814b813
commit 4454b97f55
1 changed files with 5 additions and 9 deletions

View File

@ -84,16 +84,16 @@
p.c++;
}
g.reset();
g.reset(); // also loads the current theme
if (pos.tl.c || pos.tr.c) {
g.setClipRect(0,h-24,w-1,h-1);
g.reset();
g.reset(); // also (re)loads the current theme
}
if (pos.bl.c || pos.br.c) {
g.setClipRect(0,h-24,w-1,h-1);
g.reset();
g.reset(); // also (re)loads the current theme
}
try {
@ -163,7 +163,7 @@
let MinutesAngle = (Minutes/60) * twoPi - Pi;
let SecondsAngle = (Seconds/60) * twoPi - Pi;
g.setColor('#FFFFFF');
g.setColor(g.theme.fg);
transformPolygon(HourHandPolygon, CenterX,CenterY, HoursAngle);
g.fillPoly(transformedPolygon);
@ -186,12 +186,8 @@
let Timer;
function refreshDisplay () {
g.clear();
g.clear(true); // also loads current theme
g.setColor(0,0,0);
g.fillRect(0,0, ScreenWidth,ScreenHeight);
g.setBgColor(1,1,1);
Bangle.drawWidgets();
drawClockHands();