diff options
| author | scuri <scuri> | 2010-06-21 23:52:19 +0000 | 
|---|---|---|
| committer | scuri <scuri> | 2010-06-21 23:52:19 +0000 | 
| commit | 91cb54015437f9087f6679288295c8604a21228b (patch) | |
| tree | 86d8fa0bda3cdb432bb7531c18e5d33c8fdda56f /test/simple/simple.c | |
| parent | 37a92b86d13e89d0dcec92be6d23ceced29dbc36 (diff) | |
*** empty log message ***
Diffstat (limited to 'test/simple/simple.c')
| -rw-r--r-- | test/simple/simple.c | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/test/simple/simple.c b/test/simple/simple.c index a15a242..76676fd 100644 --- a/test/simple/simple.c +++ b/test/simple/simple.c @@ -51,6 +51,7 @@ int contextplus = 0;  int simple_draw = 0;  int use_transform = 0;  int simulate = 0; +int use_opengl = 0;  enum {DRAW_ALL, DRAW_TEXTFONTS, DRAW_TEXTALIGN, DRAW_TEST}; @@ -490,7 +491,9 @@ int SimpleDrawGL(void)    dbCanvas = cdCreateCanvas(CD_GL, StrData);    curCanvas = dbCanvas; +  use_opengl = 1;    SimpleDrawRepaint(); +  use_opengl = 0;    return 0;  } @@ -542,6 +545,13 @@ int SimpleDrawAll(void)  {    cdCanvas* canvas = cdActiveCanvas();    int w, h; + +#ifdef USE_OPENGL +  if (use_opengl) +    SimpleUpdateSize(canvas); +#endif + +    cdCanvasGetSize(canvas, &w, &h, NULL, NULL);    simple_draw = DRAW_ALL; | 
