0.11: Fix regression that caused no notifications and corrupted background
parent
688a77efa2
commit
d1d55ad1cf
|
|
@ -94,7 +94,7 @@
|
||||||
"name": "Notifications (default)",
|
"name": "Notifications (default)",
|
||||||
"shortName":"Notifications",
|
"shortName":"Notifications",
|
||||||
"icon": "notify.png",
|
"icon": "notify.png",
|
||||||
"version":"0.10",
|
"version":"0.11",
|
||||||
"description": "A handler for displaying notifications that displays them in a bar at the top of the screen",
|
"description": "A handler for displaying notifications that displays them in a bar at the top of the screen",
|
||||||
"tags": "widget",
|
"tags": "widget",
|
||||||
"type": "notify",
|
"type": "notify",
|
||||||
|
|
|
||||||
|
|
@ -7,3 +7,4 @@
|
||||||
0.08: Don't turn on screen during Quiet Mode
|
0.08: Don't turn on screen during Quiet Mode
|
||||||
0.09: Add onHide callback
|
0.09: Add onHide callback
|
||||||
0.10: Improvements to help notifications work with themes
|
0.10: Improvements to help notifications work with themes
|
||||||
|
0.11: Fix regression that caused no notifications and corrupted background
|
||||||
|
|
|
||||||
|
|
@ -94,9 +94,8 @@ exports.show = function(options) {
|
||||||
y = 320-size,
|
y = 320-size,
|
||||||
h = size,
|
h = size,
|
||||||
b = y+h-1, r = x+w-1; // bottom,right
|
b = y+h-1, r = x+w-1; // bottom,right
|
||||||
g.setClipRect(x,y, r,b);
|
|
||||||
// clear area
|
// clear area
|
||||||
g.reset();
|
g.reset().setClipRect(x,y, r,b);
|
||||||
if (options.bgColor!==undefined) g.setColor(options.bgColor);
|
if (options.bgColor!==undefined) g.setColor(options.bgColor);
|
||||||
g.clearRect(x,y, r,b);
|
g.clearRect(x,y, r,b);
|
||||||
// bottom border
|
// bottom border
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue