diff options
| author | Manolo Gouy <Manolo> | 2018-08-23 14:14:56 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2018-08-23 14:14:56 +0000 |
| commit | 8de0a3c4453c50ae193c0603c7e57516a8157905 (patch) | |
| tree | eaf1f8dfdd1ac6248c88e90bc8568293c8985d84 /src | |
| parent | ec88e4a7c0987dda13915d44f3efffe20909881b (diff) | |
Remove the need to call fl_open_display() before using Fl::screen_scale(int, float).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13025 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx index b5ab7b164..4bd7ec497 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -2126,9 +2126,10 @@ float Fl::screen_scale(int n) { } /** Set the value of the GUI scaling factor for screen number \p n. -Call this function before the first window is show()'n and after -a call to fl_open_display() to set the application's initial scaling factor value. */ +Call this function before the first window is show()'n to set the + application's initial scaling factor value. */ void Fl::screen_scale(int n, float factor) { + fl_open_display(); Fl::screen_driver()->scale(n, factor); Fl_Graphics_Driver::default_driver().scale(factor); } |
