From 417b434cf182e65d7a6aa2b0ffd05f9eb381c09c Mon Sep 17 00:00:00 2001 From: Felipe Manga Date: Thu, 18 Jan 2024 19:09:53 +0000 Subject: [PATCH] Ensure graphics is in a known state when drawing --- apps/synthwave/app.js | 2 ++ apps/warpdrive/app.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/apps/synthwave/app.js b/apps/synthwave/app.js index 6e99865a7..cbc6b8794 100644 --- a/apps/synthwave/app.js +++ b/apps/synthwave/app.js @@ -721,6 +721,8 @@ function init() { } function tick(widgets) { + g.reset(); + if (lcdBuffer && !widgets) { BLACK().drawRect(-1, -1, 0, 177); // dirty all the rows gfx.tick(bgColor); diff --git a/apps/warpdrive/app.js b/apps/warpdrive/app.js index 4f55db43d..ad9b88223 100644 --- a/apps/warpdrive/app.js +++ b/apps/warpdrive/app.js @@ -656,6 +656,8 @@ function drawNode(index) { } function tick(widgets) { + g.reset(); + if (lcdBuffer && !widgets) { BLACK().drawRect(-1, -1, 0, 177); // dirty all the rows gfx.clear(bgColor);