Don't blank widgets

pull/1210/head
Adam Schmalhofer 2021-12-18 01:00:22 +01:00
parent d241cebeb0
commit c5303ef657
2 changed files with 2 additions and 2 deletions

View File

@ -2970,7 +2970,7 @@
{ {
"id": "cprassist", "id": "cprassist",
"name": "CPR Assist", "name": "CPR Assist",
"version": "0.02", "version": "0.02-rc1",
"description": "Provides assistance while performing a CPR", "description": "Provides assistance while performing a CPR",
"icon": "cprassist-icon.png", "icon": "cprassist-icon.png",
"tags": "tool,firstaid", "tags": "tool,firstaid",

View File

@ -43,7 +43,7 @@ function drawHeart() {
function updateScreen() { function updateScreen() {
const colors = [0xFFFF-g.getBgColor(), 0x9492]; const colors = [0xFFFF-g.getBgColor(), 0x9492];
g.reset().clearRect(0, 0, 250, g.getHeight()*5/6); g.reset().clearRect(0, 24, g.getWidth(), g.getHeight()*5/6);
if (counter > 0) { if (counter > 0) {
g.setFont("Vector", 40).setFontAlign(0, 0); g.setFont("Vector", 40).setFontAlign(0, 0);
g.setColor(colors[counter%2]); g.setColor(colors[counter%2]);