mirror of https://github.com/AxioDL/boo.git
Fix for #14
This commit is contained in:
parent
1834be435f
commit
48491e3250
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue