clear icon area in case weather condition changed

master
David Peer 2023-08-19 07:18:53 +02:00
parent a335acf17e
commit 188aaa99f7
1 changed files with 4 additions and 1 deletions

View File

@ -70,8 +70,11 @@
temp = temp < 0 ? '\\' + String(temp*-1) : String(temp);
g.drawString(temp, g.getWidth()-40, g.getHeight() - 1, true);
// clear icon area in case weather condition changed
g.clearRect(g.getWidth()-40, g.getHeight()-30, g.getWidth(), g.getHeight());
weather.drawIcon(w, g.getWidth()-20, g.getHeight()-15, 13);
weather.drawIcon(w, g.getWidth()-20, g.getHeight()-15, 15);
} catch(e) {
g.drawString("ERR", g.getWidth()-3, g.getHeight() - 1, true);
}