From dcfd1cd1761b117007a931929956c54841e9904e Mon Sep 17 00:00:00 2001 From: Pixel Date: Sat, 19 Dec 2009 20:46:43 -0800 Subject: Disabling draw spam. Forcing a redraw when status changes. --- dalos-binaryops.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dalos-binaryops.lua b/dalos-binaryops.lua index f128ab0..886f153 100644 --- a/dalos-binaryops.lua +++ b/dalos-binaryops.lua @@ -106,9 +106,11 @@ Maximize: %b[No,Yes]{Check if you want to maximize the output} local newh = HandleLua(obj) obj.lh = newh self:set_houtput(newh) + self.dcanvas:draw() else self.color = cd.YELLOW self:set_houtput(nil) + self.dcanvas:draw() end end, @@ -116,7 +118,6 @@ Maximize: %b[No,Yes]{Check if you want to maximize the output} dalosp.object.default_draw(self, cv, x, y, w, h) local cx, cy = x + w / 2, cv:InvertYAxis(y + h / 2) local op = self.extra.op or dalosp.binaryops.operations.XOR - print(op) cv:TextAlignment(cd.CENTER) cv:Foreground(cd.BLACK) cv:Text(cx, cy, dalosp.binaryops.opnames[op]) -- cgit v1.2.3