From c7231d243e900402068d3d0d0d1897eca9e681c1 Mon Sep 17 00:00:00 2001 From: Martin Boonk Date: Fri, 27 May 2022 10:05:50 +0200 Subject: [PATCH] Use full screen for calibration --- apps/calibration/app.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/calibration/app.js b/apps/calibration/app.js index d3823de63..727a4c349 100644 --- a/apps/calibration/app.js +++ b/apps/calibration/app.js @@ -49,7 +49,7 @@ class BanglejsApp { this.x = 16 + Math.floor(Math.random() * (g.getWidth() - 32)); this.y = 40 + Math.floor(Math.random() * (g.getHeight() - 80)); - g.clearRect(0, 24, g.getWidth(), g.getHeight() - 24); + g.clearRect(0, 0, g.getWidth(), g.getHeight()); g.drawLine(this.x, this.y - 5, this.x, this.y + 5); g.drawLine(this.x - 5, this.y, this.x + 5, this.y); g.setFont('Vector', 10); @@ -64,8 +64,6 @@ class BanglejsApp { E.srand(Date.now()); -Bangle.loadWidgets(); -Bangle.drawWidgets(); calibration = new BanglejsApp(); calibration.load_settings();