widmsggrid: reset graphics state after setClipRect
as per https://github.com/espruino/BangleApps/pull/3813#issuecomment-2826952155.master
parent
b63c819a0a
commit
f85e4a33fa
|
|
@ -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).
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue