widmsggrid: reset graphics state after setClipRect

as per https://github.com/espruino/BangleApps/pull/3813#issuecomment-2826952155.
master
thyttan 2025-04-24 23:07:01 +02:00
parent b63c819a0a
commit f85e4a33fa
3 changed files with 3 additions and 1 deletions

View File

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

View File

@ -1,7 +1,7 @@
{
"id": "widmsggrid",
"name": "Messages Grid Widget",
"version": "0.06",
"version": "0.07",
"description": "Widget that displays notification icons in a grid",
"icon": "widget.png",
"type": "widget",

View File

@ -49,6 +49,7 @@
r++;
}
});
g.reset(); // Make sure we don't leave clipRect set to some smaller rectangle.
if (w.total > 1) {
// show total number of messages in bottom-right corner
g.reset();