Browse Source

Fix group nesting / end() statements in test/cube demo

pull/302/head
Albrecht Schlosser 4 years ago
parent
commit
7b9ddd97c3
  1. 19
      test/cube.cxx

19
test/cube.cxx

@ -3,7 +3,7 @@
// //
// Modified to have 2 cubes to test multiple OpenGL contexts // 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 // 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 // the file "COPYING" which should have been included with this file. If this
@ -230,17 +230,18 @@ void makeform(const char *name) {
// right resizer // right resizer
Fl_Box *rt_resizer = new Fl_Box(rt_grp_x-5, rt_grp_y, 10, rt_grp_h); Fl_Box *rt_resizer = new Fl_Box(rt_grp_x-5, rt_grp_y, 10, rt_grp_h);
rt_resizer->box(FL_NO_BOX); 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 #if HAVE_GL
// try to overlay a button onto an OpenGL window // overlay a button onto an OpenGL window
lt_cube->begin(); lt_cube->begin();
Fl_Button *test = new Fl_Button(35, 105, 100, 30, "Test"); Fl_Button *test = new Fl_Button(35, 105, 100, 30, "Test");
test->box(FL_ROUND_UP_BOX); test->box(FL_ROUND_UP_BOX);
lt_cube->end(); lt_cube->end();
#endif // HAVE_GL #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) { int main(int argc, char **argv) {

Loading…
Cancel
Save