summaryrefslogtreecommitdiff
path: root/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-06-18 13:35:39 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-06-18 13:35:39 +0200
commit23484c30a9126dcda3f589cd63e3fe2ec8b41c98 (patch)
tree0c449df8be2cf7688e25a43596ce07dbceaf7849 /src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx
parent643533b4b85cb31d181ad9f5399f013ea28f6662 (diff)
Slightly simpler Fl_WinAPI_Screen_Driver::init()
Diffstat (limited to 'src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx')
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx
index 0a079a43f..5eff35d9d 100644
--- a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx
+++ b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx
@@ -113,7 +113,6 @@ void Fl_WinAPI_Screen_Driver::init()
// we do a run-time check for the required functions...
HMODULE hMod = GetModuleHandle("USER32.DLL");
- int old_num_screens = num_screens;
if (hMod) {
// check that EnumDisplayMonitors is available
fl_edm_func fl_edm = (fl_edm_func)GetProcAddress(hMod, "EnumDisplayMonitors");
@@ -140,10 +139,8 @@ void Fl_WinAPI_Screen_Driver::init()
screens[0].right = GetSystemMetrics(SM_CXSCREEN);
screens[0].bottom = GetSystemMetrics(SM_CYSCREEN);
work_area[0] = screens[0];
- scale_of_screen[0] = 1;
way_out:
- // prevent desktop_scale_factor() from being called twice at app startup
- if (old_num_screens >= 0) desktop_scale_factor();
+ desktop_scale_factor();
}