Fix other app's graphics showing on image clock (BANGLEJS 1)

There is an issue, where if you open an app that has graphics on the bottom, and hold down BTN3 to go to the image clock, a small amount of the apps graphics (about 10px) will show on the bottom. This update just adds an initial clear, which clears other app's graphics.

I am using a banglejs v1 (firmware 2v21).
pull/3336/head
ice 2024-04-06 20:50:50 -04:00 committed by GitHub
parent 105b7fd877
commit 00f95132c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -3,6 +3,7 @@ Draws a fullscreen image from flash memory
Saves a small image to flash which is just the area where the clock is
Keeps an offscreen buffer and draws the time to that
*/
g.clear(); //clears other apps's graphics
var is12Hour = (require("Storage").readJSON("setting.json",1)||{})["12hour"];
var inf = require("Storage").readJSON("imgclock.face.json");
var img = require("Storage").read("imgclock.face.img");