From 48491e32508142ce117bc7a8d1f06cd6e2048dec Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sun, 12 Feb 2017 08:20:52 -1000 Subject: [PATCH] Fix for #14 --- lib/win/WindowWin32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/win/WindowWin32.cpp b/lib/win/WindowWin32.cpp index fdc144f..38b4cec 100644 --- a/lib/win/WindowWin32.cpp +++ b/lib/win/WindowWin32.cpp @@ -1098,7 +1098,7 @@ public: DEVICE_SCALE_FACTOR Factor; HMONITOR mon = MonitorFromWindow(m_hwnd, MONITOR_DEFAULTTOPRIMARY); MyGetScaleFactorForMonitor(mon, &Factor); - if (Factor == DEVICE_SCALE_FACTOR_INVALID) + if (Factor == 0) return 1.f; return Factor / 100.f; }