diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-11-25 13:36:18 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-11-25 13:36:44 +0100 |
| commit | 7b9ddd97c3f1feb30f06e5da43b5158512862fc3 (patch) | |
| tree | cbdf8a1c069d1c0d78f0d7d41404b32fc957c0bc /test/cube.cxx | |
| parent | 2f506407327762ce30b4d895c856baa7f681d9bc (diff) | |
Fix group nesting / end() statements in test/cube demo
Diffstat (limited to 'test/cube.cxx')
| -rw-r--r-- | test/cube.cxx | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/test/cube.cxx b/test/cube.cxx index 733af20da..76cb0a8b7 100644 --- a/test/cube.cxx +++ b/test/cube.cxx @@ -3,7 +3,7 @@ // // Modified to have 2 cubes to test multiple OpenGL contexts // -// Copyright 1998-2019 by Bill Spitzak and others. +// Copyright 1998-2021 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -230,17 +230,18 @@ void makeform(const char *name) { // right resizer Fl_Box *rt_resizer = new Fl_Box(rt_grp_x-5, rt_grp_y, 10, rt_grp_h); rt_resizer->box(FL_NO_BOX); - form->end(); - form->resizable(rt_resizer); - form->size_range(form->w(), form->h()); // minimum window size #if HAVE_GL - // try to overlay a button onto an OpenGL window - lt_cube->begin(); - Fl_Button *test = new Fl_Button(35, 105, 100, 30, "Test"); - test->box(FL_ROUND_UP_BOX); - lt_cube->end(); + // overlay a button onto an OpenGL window + 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 + + form->end(); + form->resizable(rt_resizer); + form->size_range(form->w(), form->h()); // minimum window size } int main(int argc, char **argv) { |
