summaryrefslogtreecommitdiff
path: root/html
diff options
context:
space:
mode:
authorscuri <scuri>2010-10-15 02:36:01 +0000
committerscuri <scuri>2010-10-15 02:36:01 +0000
commit4658f8fe86dbf499b1e43db455c5172007b93d14 (patch)
treeb1679b8f8cf421dd8edfd87952c33578aa1364f1 /html
parent26ee3a10b806df99915805516567f6ad38956ac4 (diff)
Fixed: Cairo context plus base driver when used with GDK.
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