summaryrefslogtreecommitdiff
path: root/test/simple
diff options
context:
space:
mode:
authorscuri <scuri>2009-12-16 13:20:08 +0000
committerscuri <scuri>2009-12-16 13:20:08 +0000
commitd16f00afbbac707bba729eb3874fac4c52273a91 (patch)
tree3c92a5551573f4ba88cc525803d1756fff5e45fb /test/simple
parent130c513d903cc7d3d67f9fcb82d9b1a964cf0f08 (diff)
*** empty log message ***
Diffstat (limited to 'test/simple')
-rw-r--r--test/simple/config.mak6
-rw-r--r--test/simple/iupmain.c7
-rw-r--r--test/simple/simple.c2
3 files changed, 8 insertions, 7 deletions
diff --git a/test/simple/config.mak b/test/simple/config.mak
index 9598d84..a929c97 100644
--- a/test/simple/config.mak
+++ b/test/simple/config.mak
@@ -1,5 +1,11 @@
APPNAME = simple
+ifdef USE_GDK
+ APPNAME = simplegdk
+else
+ DEFINES = USE_CONTEXTPLUS
+endif
+
SRC = simple.c simple_led.c iupmain.c
#DBG = Yes
diff --git a/test/simple/iupmain.c b/test/simple/iupmain.c
index 2f2efc1..daf058a 100644
--- a/test/simple/iupmain.c
+++ b/test/simple/iupmain.c
@@ -15,20 +15,15 @@ int main(int argc, char** argv)
{
IupOpen(&argc, &argv);
-#ifndef USE_GDK
+#ifdef USE_CONTEXTPLUS
cdInitContextPlus();
#endif
simple_loadled();
-#ifdef USE_GDK
- IupSetAttribute(IupGetHandle("SimpleCanvas"), "CD_GDK", "YES");
-#endif
-
IupSetAttribute(IupGetHandle("SimpleDialog"), "PLACEMENT", "MAXIMIZED");
IupShow(IupGetHandle("SimpleDialog"));
-
SimpleCreateCanvas((char*)IupGetHandle("SimpleCanvas"));
IupSetFunction("cmdExit", (Icallback) cmdExit);
diff --git a/test/simple/simple.c b/test/simple/simple.c
index 889185f..d04b96c 100644
--- a/test/simple/simple.c
+++ b/test/simple/simple.c
@@ -150,7 +150,7 @@ int SimpleTransform(void)
int SimpleContextPlus(void)
{
-#ifndef USE_GDK
+#ifdef USE_CONTEXTPLUS
gdpiplus = !gdpiplus;
SimpleKillCanvas();
SimpleCreateCanvasWindow();