diff options
author | scuri <scuri> | 2009-07-07 00:13:40 +0000 |
---|---|---|
committer | scuri <scuri> | 2009-07-07 00:13:40 +0000 |
commit | ad9b34e834fc762ca63073e9865526125644edaa (patch) | |
tree | d6ec0ab8a80313e4cb2f314a416d74276c25f2f4 /test | |
parent | c8f1fb92adb9acfd3271a3e5e8f4abacfa609572 (diff) |
*** empty log message ***
Diffstat (limited to 'test')
-rw-r--r-- | test/simple/iupmain.c | 5 | ||||
-rw-r--r-- | test/simple/simple.c | 2 |
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; } |