diff options
Diffstat (limited to 'test/simple')
-rw-r--r-- | test/simple/config.mak | 6 | ||||
-rw-r--r-- | test/simple/iupmain.c | 7 | ||||
-rw-r--r-- | test/simple/simple.c | 2 |
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(); |