This commit is contained in:
Jack Andersen 2017-02-12 08:20:52 -10:00
parent 1834be435f
commit 48491e3250
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}