diff options
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); } |
