Merge pull request #3336 from blueiicey/master

Fix other app's graphics showing on image clock (BANGLEJS 1)
master
Martin Boonk 2024-04-07 14:45:45 +02:00 committed by GitHub
commit 1b6102ddba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 2 deletions

View File

@ -9,4 +9,5 @@
0.08: Use Bangle.setUI for button/launcher handling 0.08: Use Bangle.setUI for button/launcher handling
0.09: Bangle.js 2 compatibility 0.09: Bangle.js 2 compatibility
0.10: Tell clock widgets to hide. 0.10: Tell clock widgets to hide.
0.11: Allow fullscreen clock faces with hidden widgets 0.11: Allow fullscreen clock faces with hidden widgets
0.12: Fixed a bug where other app's graphics would not get cleared.

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 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 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 is12Hour = (require("Storage").readJSON("setting.json",1)||{})["12hour"];
var inf = require("Storage").readJSON("imgclock.face.json"); var inf = require("Storage").readJSON("imgclock.face.json");
var img = require("Storage").read("imgclock.face.img"); var img = require("Storage").read("imgclock.face.img");

View File

@ -2,7 +2,7 @@
"id": "imgclock", "id": "imgclock",
"name": "Image background clock", "name": "Image background clock",
"shortName": "Image Clock", "shortName": "Image Clock",
"version": "0.11", "version": "0.12",
"description": "A clock with an image as a background. **Note:** this clock shows seconds, so has higher than average power consumption.", "description": "A clock with an image as a background. **Note:** this clock shows seconds, so has higher than average power consumption.",
"icon": "app.png", "icon": "app.png",
"type": "clock", "type": "clock",