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
This commit is contained in:
parent
ec88e4a7c0
commit
8de0a3c445
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user