From 22af09dae7a2e17f0b1253030fd3cb7c6ce92799 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 2 Dec 2015 09:59:37 +0000 Subject: Mac OS: support for high resolution OpenGL windows. Methods Fl::event_x_pixel() and Fl::event_y_pixel() committed at r.10941 are removed. Instead method Fl_Gl_Window::pixels_per_unit() is added. The documentation explains in more detail how to write cross-platform FLTK code supporting high resolution OpenGL windows on retina displays. The examples/OpenGL3test.cxx app exercises Fl_Gl_Window::pixels_per_unit(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10945 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- examples/OpenGL3test.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/OpenGL3test.cxx b/examples/OpenGL3test.cxx index 8c293f81f..5ce620445 100644 --- a/examples/OpenGL3test.cxx +++ b/examples/OpenGL3test.cxx @@ -149,7 +149,7 @@ public: data[0] *= factor; glBufferSubData(GL_ARRAY_BUFFER, 24*sizeof(GLfloat), 4*sizeof(GLfloat), data); redraw(); - add_output("push Fl::event_x_pixel()=%d Fl::event_y_pixel()=%d\n",Fl::event_x_pixel(), Fl::event_y_pixel()); + add_output("push Fl_Gl_Window::pixels_per_unit()=%d\n", pixels_per_unit()); return 1; } return Fl_Gl_Window::handle(event); -- cgit v1.2.3