summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-12-28 23:57:18 +0100
committerPixel <pixel@nobis-crew.org>2009-12-28 23:57:18 +0100
commit57a3540010861f78bb86d493f084a2f4dd52169c (patch)
tree48d3a62efcc493d37ee8643289191892013c120e
parentdec3f7e6c7e5b7ed5ef94b68456bd267ea62143b (diff)
Tweaking a bit the framebuffer, in order to properly use the double buffer.
-rw-r--r--dalos-framebuffer.lua6
-rw-r--r--iupe-dbuffer.lua4
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