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
This commit is contained in:
Manolo Gouy
2018-05-22 17:00:27 +00:00
parent 4c65d976e4
commit ce71c4b679
6 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ for the screen in use and obtains quantities in <b>drawing units</b>.
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...
<li>...but not on Mac OS X and for retina displays, where one drawing unit corresponds