diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-02-09 08:43:36 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-02-09 08:43:36 +0100 |
| commit | 85256b908fca6450ccf3aee11139b01825f01bc1 (patch) | |
| tree | 469b0da23723c9b3d213ca136907fd843d28a14f | |
| parent | d6aa3a67a0fba50869e9b65b5fb6e171e43e5d1b (diff) | |
Make test/fullscreen follow what doc of Fl_Window constructor says.
That doc says:
"Top-level windows initially have visible() set to 0 and parent() set to NULL"
and here sw is created as a top-level window, so it must be made visible
either by set_visible() or by show().
| -rw-r--r-- | test/fullscreen.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fullscreen.cxx b/test/fullscreen.cxx index 4abdfd619..668ea460f 100644 --- a/test/fullscreen.cxx +++ b/test/fullscreen.cxx @@ -272,7 +272,7 @@ int main(int argc, char **argv) { fullscreen_window window(460,400+30*NUMB); window.end(); shape_window sw(10,10,window.w()-20,window.h()-30*NUMB-120); - + sw.set_visible(); // necessary because sw is not a child of window #if HAVE_GL sw.mode(FL_RGB); #endif |
