From d16f00afbbac707bba729eb3874fac4c52273a91 Mon Sep 17 00:00:00 2001 From: scuri Date: Wed, 16 Dec 2009 13:20:08 +0000 Subject: *** empty log message *** --- test/simple/config.mak | 6 ++++++ test/simple/iupmain.c | 7 +------ test/simple/simple.c | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) (limited to 'test/simple') 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(); -- cgit v1.2.3