summaryrefslogtreecommitdiff
path: root/test/simple/iupmain.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/simple/iupmain.c')
-rw-r--r--test/simple/iupmain.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/simple/iupmain.c b/test/simple/iupmain.c
index 4eb4a5d..562d06c 100644
--- a/test/simple/iupmain.c
+++ b/test/simple/iupmain.c
@@ -15,13 +15,18 @@ int main(int argc, char** argv)
{
IupOpen(&argc, &argv);
+#ifndef USE_GDK
cdInitContextPlus();
+#endif
simple_loadled();
IupSetAttribute(IupGetHandle("SimpleDialog"), "PLACEMENT", "MAXIMIZED");
IupShow(IupGetHandle("SimpleDialog"));
+#ifdef USE_GDK
+ IupSetAttribute(IupGetHandle("SimpleCanvas"), "CD_GDK", "Yes");
+#endif
SimpleCreateCanvas((char*)IupGetHandle("SimpleCanvas"));
IupSetFunction("cmdExit", (Icallback) cmdExit);