diff options
author | scuri <scuri> | 2010-10-15 02:36:01 +0000 |
---|---|---|
committer | scuri <scuri> | 2010-10-15 02:36:01 +0000 |
commit | 4658f8fe86dbf499b1e43db455c5172007b93d14 (patch) | |
tree | b1679b8f8cf421dd8edfd87952c33578aa1364f1 /html/examples/iuplua_cdlua.wlua | |
parent | 26ee3a10b806df99915805516567f6ad38956ac4 (diff) |
Fixed: Cairo context plus base driver when used with GDK.
Diffstat (limited to 'html/examples/iuplua_cdlua.wlua')
-rw-r--r-- | html/examples/iuplua_cdlua.wlua | 3 |
1 files changed, 3 insertions, 0 deletions
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 |