mirror of
https://github.com/AxioDL/boo.git
synced 2025-06-05 14:13:31 +00:00
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…
x
Reference in New Issue
Block a user