diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-02-27 15:09:12 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-02-27 15:09:12 +0100 |
| commit | 08d9b3e10df815efc970ed348bc7a2a28d2fbb4a (patch) | |
| tree | 587415c16e4f412607ca5d721d7f89dfbf14d98d /test | |
| parent | c83490fe30476614ae735e58992543a308a81bb7 (diff) | |
Remove config_lib.h and runtime configuration info
... as discussed in fltk.coredev.
Diffstat (limited to 'test')
| -rw-r--r-- | test/cube.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/cube.cxx b/test/cube.cxx index f7052b40a..c067d49ea 100644 --- a/test/cube.cxx +++ b/test/cube.cxx @@ -119,7 +119,9 @@ void cube_box::draw() { // if an OpenGL graphics driver is installed, give it a chance // to draw additional graphics - if (Fl::cfg_gfx_opengl) Fl_Gl_Window::draw(); +#if HAVE_GL + Fl_Gl_Window::draw(); +#endif } int cube_box::handle(int e) { @@ -234,12 +236,10 @@ void makeform(const char *name) { #if HAVE_GL // try to overlay a button onto an OpenGL window - if (Fl::cfg_gfx_opengl) { - lt_cube->begin(); - Fl_Button *test = new Fl_Button(35, 105, 100, 30, "Test"); - test->box(FL_ROUND_UP_BOX); - lt_cube->end(); - } + lt_cube->begin(); + Fl_Button *test = new Fl_Button(35, 105, 100, 30, "Test"); + test->box(FL_ROUND_UP_BOX); + lt_cube->end(); #endif // HAVE_GL } |
