summaryrefslogtreecommitdiff
path: root/html
diff options
context:
space:
mode:
Diffstat (limited to 'html')
-rw-r--r--html/en/history.html3
-rw-r--r--html/examples/iuplua_cdlua.wlua3
2 files changed, 6 insertions, 0 deletions
diff --git a/html/en/history.html b/html/en/history.html
index 06eb512..f68efe6 100644
--- a/html/en/history.html
+++ b/html/en/history.html
@@ -62,6 +62,9 @@
<li>
<span class="hist_fixed">Fixed:</span> locale in SVG for floating point
numbers, it must use dots &quot;.&quot; for decimal separators.</li>
+ <li>
+ <span class="hist_fixed">Fixed:</span> Cairo context plus base driver
+ when used with GDK.</li>
</ul>
<h3><a href="http://sourceforge.net/projects/canvasdraw/files/5.4/">Version 5.4</a> (24/June/2010)</h3>
<ul>
diff --git a/html/examples/iuplua_cdlua.wlua b/html/examples/iuplua_cdlua.wlua
index 5528117..d9c5058 100644
--- a/html/examples/iuplua_cdlua.wlua
+++ b/html/examples/iuplua_cdlua.wlua
@@ -1,6 +1,7 @@
require"cdlua"
require"iuplua"
require"iupluacd"
+require"cdluacontextplus"
cnv = iup.canvas {size = "200x100"}
@@ -13,7 +14,9 @@ box = iup.vbox{
dlg = iup.dialog{box; title="Example IUPLUA/CDLUA"}
function cnv:map_cb()
+ cd.UseContextPlus(true)
canvas = cd.CreateCanvas(cd.IUP, self)
+ cd.UseContextPlus(false)
self.canvas = canvas -- store the CD canvas in a IUP attribute
end