summaryrefslogtreecommitdiff
path: root/documentation/src/opengl.dox
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-04-14 09:27:41 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-04-14 09:27:41 +0200
commit0f6cbd1cda76e3304880dbaa82cc5f7a6b0ac833 (patch)
treee22e7ef2a66dedbd91683f0e8ec4202df11791b5 /documentation/src/opengl.dox
parenta65d7818bee5f1e3cb4c8b06faf63dc24d53f253 (diff)
Doxygen: rewording for more clarity.
Diffstat (limited to 'documentation/src/opengl.dox')
-rw-r--r--documentation/src/opengl.dox6
1 files changed, 3 insertions, 3 deletions
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