summaryrefslogtreecommitdiff
path: root/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-02-15 21:07:24 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-02-15 21:07:24 +0100
commita723c0e8896e197b4d48f915f609e6749fc1807c (patch)
tree839e8edfb5dbffd38ecab6aebe30c7dbfade5e41 /src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx
parentbbaec9bd88b309fbeec80d6d0118997f5b32def3 (diff)
PR #174: Skip the call to MonitorFromRect when it is not needed.
Diffstat (limited to 'src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx')
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx4
1 files changed, 1 insertions, 3 deletions
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();
}