mirror of https://github.com/espruino/BangleApps
Minor tweak - avoid flicker when date is rendered again after minutes slides off
parent
ee1675d5f0
commit
219fe891af
|
@ -90,11 +90,10 @@ let animate = function(isIn, callback) {
|
|||
if (stop) {
|
||||
clearInterval(animInterval);
|
||||
animInterval=undefined;
|
||||
if (isAnimIn) // draw the date
|
||||
g.setColor(g.theme.bg).setFontAlign(0, 0).setFont("6x15").drawString(dateStr, R.x + R.w/2, R.y+R.h-9);
|
||||
if (callback) callback();
|
||||
if (isAnimIn) {
|
||||
// draw the date
|
||||
g.setColor(g.theme.bg).setFontAlign(0, 0).setFont("6x15").drawString(dateStr, R.x + R.w/2, R.y+R.h-9);}
|
||||
}
|
||||
}
|
||||
}, 20);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue