Merge pull request #3825 from thyttan/widmsggrid

widmsggrid: reset graphics state after setClipRect
master
Rob Pilling 2025-04-25 08:41:25 +01:00 committed by GitHub
commit a6e622c40f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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();