From ce71c4b679b7afdb07de1133d0c600051e2601f6 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 22 May 2018 17:00:27 +0000 Subject: Add Fl::screen_scale(int) function to get the scaling factor value of a screen. This allows to keep class Fl_Screen_Driver away from the public API. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12926 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/src/drawing.dox | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'documentation') diff --git a/documentation/src/drawing.dox b/documentation/src/drawing.dox index 666fe541d..26c615f03 100644 --- a/documentation/src/drawing.dox +++ b/documentation/src/drawing.dox @@ -62,7 +62,7 @@ for the screen in use and obtains quantities in drawing units. The current scale factor value, for an Fl_Window named \e window, is given by \code int nscreen = window->screen_num(); // the screen where window is mapped -float s = Fl::screen_driver()->scale(nscreen); // this screen's scale factor +float s = Fl::screen_scale(nscreen); // this screen's scale factor \endcode One drawing unit generally corresponds to one screen pixel...
  • ...but not on Mac OS X and for retina displays, where one drawing unit corresponds -- cgit v1.2.3