From a723c0e8896e197b4d48f915f609e6749fc1807c Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Mon, 15 Feb 2021 21:07:24 +0100 Subject: PR #174: Skip the call to MonitorFromRect when it is not needed. --- src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx') diff --git a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx index 9720c2594..d28cccae8 100644 --- a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx +++ b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx @@ -125,7 +125,7 @@ void Fl_WinAPI_Screen_Driver::init() // NOTE: num_screens is incremented in screen_cb so we must first reset it here... num_screens = 0; fl_edm(0, 0, screen_cb, (LPARAM)this); - goto way_out; + return; } } } @@ -137,8 +137,6 @@ void Fl_WinAPI_Screen_Driver::init() screens[0].right = GetSystemMetrics(SM_CXSCREEN); screens[0].bottom = GetSystemMetrics(SM_CYSCREEN); work_area[0] = screens[0]; -way_out: - desktop_scale_factor(); } -- cgit v1.2.3