From 8de0a3c4453c50ae193c0603c7e57516a8157905 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 23 Aug 2018 14:14:56 +0000 Subject: 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 --- src/Fl.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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); } -- cgit v1.2.3