Skip to content

Commit a6e622c

Browse files
authored
Merge pull request #3825 from thyttan/widmsggrid
widmsggrid: reset graphics state after setClipRect
2 parents b63c819 + f85e4a3 commit a6e622c

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

apps/widmsggrid/ChangeLog

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
0.04: Remove library stub
55
0.05: Don't turn on LCD
66
0.06: Don't draw outside of widget field
7+
0.07: Don't leave clipRect modified, as per [this comment](https://github.com/espruino/BangleApps/pull/3813#issuecomment-2826952155).

apps/widmsggrid/metadata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "widmsggrid",
33
"name": "Messages Grid Widget",
4-
"version": "0.06",
4+
"version": "0.07",
55
"description": "Widget that displays notification icons in a grid",
66
"icon": "widget.png",
77
"type": "widget",

apps/widmsggrid/widget.js

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
r++;
5050
}
5151
});
52+
g.reset(); // Make sure we don't leave clipRect set to some smaller rectangle.
5253
if (w.total > 1) {
5354
// show total number of messages in bottom-right corner
5455
g.reset();

0 commit comments

Comments
 (0)