From 4658f8fe86dbf499b1e43db455c5172007b93d14 Mon Sep 17 00:00:00 2001 From: scuri Date: Fri, 15 Oct 2010 02:36:01 +0000 Subject: Fixed: Cairo context plus base driver when used with GDK. --- html/examples/iuplua_cdlua.wlua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'html/examples') 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 -- cgit v1.2.3