summaryrefslogtreecommitdiff
path: root/dalos-binaryops.lua
diff options
context:
space:
mode:
Diffstat (limited to 'dalos-binaryops.lua')
-rw-r--r--dalos-binaryops.lua3
1 files changed, 2 insertions, 1 deletions
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])