mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
Fix lock 'leak' when creating Graphics with callbacks
This commit is contained in:
parent
6b635442ca
commit
7d0538665d
@ -1,5 +1,6 @@
|
||||
1v60 : Fix unary plug on variable not working (fix #268)
|
||||
Added DNS with eth.setIP() for W5500
|
||||
Fix lock 'leak' when creating Graphics with callbacks
|
||||
|
||||
1v59 : (function(){})?1:0 should == 1 (fix #261)
|
||||
Fix Math.pow (Fix #260)
|
||||
|
||||
@ -80,8 +80,8 @@ void lcdFillRect_JS(struct JsGraphics *gfx, short x1, short y1, short x2, short
|
||||
}
|
||||
|
||||
void lcdInit_JS(JsGraphics *gfx, JsVar *setPixelCallback, JsVar *fillRectCallback) {
|
||||
jsvAddNamedChild(gfx->graphicsVar, setPixelCallback, "iSetPixel");
|
||||
jsvAddNamedChild(gfx->graphicsVar, fillRectCallback, "iFillRect");
|
||||
jsvObjectSetChild(gfx->graphicsVar, "iSetPixel", setPixelCallback);
|
||||
jsvObjectSetChild(gfx->graphicsVar, "iFillRect", fillRectCallback);
|
||||
}
|
||||
|
||||
void lcdSetCallbacks_JS(JsGraphics *gfx) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user