From 08d9b3e10df815efc970ed348bc7a2a28d2fbb4a Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sat, 27 Feb 2021 15:09:12 +0100 Subject: Remove config_lib.h and runtime configuration info ... as discussed in fltk.coredev. --- test/cube.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'test/cube.cxx') 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 } -- cgit v1.2.3