summaryrefslogtreecommitdiff
path: root/test/simple
diff options
context:
space:
mode:
authorscuri <scuri>2009-07-07 00:13:40 +0000
committerscuri <scuri>2009-07-07 00:13:40 +0000
commitad9b34e834fc762ca63073e9865526125644edaa (patch)
treed6ec0ab8a80313e4cb2f314a416d74276c25f2f4 /test/simple
parentc8f1fb92adb9acfd3271a3e5e8f4abacfa609572 (diff)
*** empty log message ***
Diffstat (limited to 'test/simple')
-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;
}