From 0f6cbd1cda76e3304880dbaa82cc5f7a6b0ac833 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 14 Apr 2019 09:27:41 +0200 Subject: Doxygen: rewording for more clarity. --- documentation/src/opengl.dox | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'documentation') diff --git a/documentation/src/opengl.dox b/documentation/src/opengl.dox index b0c6b3d65..35b39e4a7 100644 --- a/documentation/src/opengl.dox +++ b/documentation/src/opengl.dox @@ -185,13 +185,13 @@ HighDPI displays (including the so-called 'retina' displays of Apple hardware) are supported by FLTK in such a way that 1 unit of an FLTK quantity (say, the value given by Fl_Gl_Window::w()) corresponds to more than 1 pixel on the display. Conversely, when a program specifies the width and height of the -OpenGL viewport, it is necessary to use an API that returns quantities expressed in pixels -as follows: +OpenGL viewport, it is necessary to use an API that returns quantities expressed in pixels. +That can be done as follows: \code Fl_Gl_Window *glw = ...; glViewport(0, 0, glw->pixel_w(), glw->pixel_h()); \endcode -which makes use of the Fl_Gl_Window::pixel_w() and Fl_Gl_Window::pixel_h() functions giving +which makes use of the Fl_Gl_Window::pixel_w() and Fl_Gl_Window::pixel_h() methods giving the size in pixels of an Fl_Gl_Window that is potentially mapped to a HighDPI display. Method Fl_Gl_Window::pixels_per_unit() can also be useful in this context. \note A further coding rule is necessary to properly support retina displays -- cgit v1.2.3