summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/simple/iupmain.c5
-rw-r--r--test/simple/simple.c2
2 files changed, 7 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);
diff --git a/test/simple/simple.c b/test/simple/simple.c
index bc0e59b..a16ceb2 100644
--- a/test/simple/simple.c
+++ b/test/simple/simple.c
@@ -149,10 +149,12 @@ int SimpleTransform(void)
int SimpleContextPlus(void)
{
+#ifndef USE_GDK
gdpiplus = !gdpiplus;
SimpleKillCanvas();
SimpleCreateCanvasWindow();
SimpleDrawRepaint();
+#endif
return 0;
}