diff options
| author | Manolo Gouy <Manolo> | 2018-09-12 12:46:09 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2018-09-12 12:46:09 +0000 |
| commit | b0e0e0912cc9e6dab548fe914461cee96772dce1 (patch) | |
| tree | d97fc0539900ea0aaff20a767f5f2fffdc0e2313 /examples/OpenGL3-glut-test.cxx | |
| parent | b6f65b1c8706098fbbbe8b717f5c94309728aa16 (diff) | |
MacOS ≥ 10.10: Fl_Window::fullscreen() and fullscreen_off() no longer call Fl_Window::hide() + Fl_Window::show()
The new procedure essentially resizes the window, as done on the X11+EWMH and Windows platforms.
This improves in particular the possibility to turn an Fl_Gl_Window fullscreen on and off.
MacOS ≥ 10.10 is required because the procedure isn't stable (random crashes during fast switches) with 10.9.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13045 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'examples/OpenGL3-glut-test.cxx')
| -rw-r--r-- | examples/OpenGL3-glut-test.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/OpenGL3-glut-test.cxx b/examples/OpenGL3-glut-test.cxx index 405d7f105..84c9322a4 100644 --- a/examples/OpenGL3-glut-test.cxx +++ b/examples/OpenGL3-glut-test.cxx @@ -198,7 +198,6 @@ int main (int argc, char* argv[]) glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | FL_OPENGL3); glutInitWindowSize(400, 400); glutCreateWindow("Triangle Test"); - if (fullscreen) Fl::first_window()->fullscreen(); #ifndef __APPLE__ GLenum err = glewInit(); // defines pters to functions of OpenGL V 1.2 and above if (err) Fl::error("glewInit() failed returning %u", err); @@ -215,6 +214,7 @@ int main (int argc, char* argv[]) initShaders(); init(); glutDisplayFunc(display); + if (fullscreen) Fl::first_window()->fullscreen(); glutMainLoop(); return 0; } |
