diff options
-rw-r--r-- | dalos-framebuffer.lua | 6 | ||||
-rw-r--r-- | iupe-dbuffer.lua | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/dalos-framebuffer.lua b/dalos-framebuffer.lua index ab3e593..b3b3706 100644 --- a/dalos-framebuffer.lua +++ b/dalos-framebuffer.lua @@ -1,3 +1,5 @@ +load "iupe-dbuffer.lua" + dalosp.framebuffer = { get_settings = function (self) return { } @@ -35,7 +37,9 @@ dalosp.framebuffer = { local fb = iup.canvas { expand = "Yes", - font = "Courier, 8" + font = "Courier, 8", + action = iupep.dbuffer.action, + draw = dalos.framebuffer.draw, } local dlg = iup.dialog { fb, diff --git a/iupe-dbuffer.lua b/iupe-dbuffer.lua index 4321206..8c1412f 100644 --- a/iupe-dbuffer.lua +++ b/iupe-dbuffer.lua @@ -4,6 +4,8 @@ loadmodule "lualibs" if not iupep then iupep = {} end +if not iupep.dbuffer then + iupep.dbuffer = { map_cb = function (self) self.cv = cd.CreateCanvas(cd.IUP, self) @@ -41,3 +43,5 @@ iupep.dbuffer = { return iup.DEFAULT end, } + +end |