From 9d869d73c1ca8f6c884f528a3ad4f623f25dffb1 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Thu, 10 Mar 2022 15:05:26 +0100 Subject: Begin documenting the Wayland platform, new in FLTK version 1.4 --- documentation/src/drawing.dox | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'documentation/src/drawing.dox') diff --git a/documentation/src/drawing.dox b/documentation/src/drawing.dox index 1eee9f195..a80286f68 100644 --- a/documentation/src/drawing.dox +++ b/documentation/src/drawing.dox @@ -69,11 +69,15 @@ The current scale factor value, for an Fl_Window named \e window, is given by One drawing unit generally corresponds to one screen pixel ...
  • ... but not on macOS and for retina displays, where one drawing unit corresponds to two pixels. + +
  • ... and not with the Wayland platform, where one drawing unit may +correspond to 1, 2, or 3 pixels according to the current value of the +Wayland-defined, integer-valued scale factor. At application start time, FLTK attempts to detect the adequate scale factor value for -each screen of the system. Here is how that's done under the \ref osissues_x_scaling "X11" -and \ref osissues_windows_scaling "Windows" platforms. +each screen of the system. Here is how that's done under the \ref osissues_x_scaling "X11", +\ref osissues_windows_scaling "Windows", and \ref osissues_wayland_scaling "Wayland" platforms. If the resulting scale factor is not satisfactory, and also under the macOS platform, it's possible to set the FLTK_SCALING_FACTOR environmental variable to the desired numerical value -- cgit v1.2.3