mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-19 01:46:28 +00:00
Windows sync
This commit is contained in:
@@ -1092,7 +1092,18 @@ public:
|
||||
|
||||
float getVirtualPixelFactor() const
|
||||
{
|
||||
return 1.0;
|
||||
#if _WIN32_WINNT_WINBLUE
|
||||
if (MyGetScaleFactorForMonitor)
|
||||
{
|
||||
DEVICE_SCALE_FACTOR Factor;
|
||||
HMONITOR mon = MonitorFromWindow(m_hwnd, MONITOR_DEFAULTTOPRIMARY);
|
||||
MyGetScaleFactorForMonitor(mon, &Factor);
|
||||
if (Factor == DEVICE_SCALE_FACTOR_INVALID)
|
||||
return 1.f;
|
||||
return Factor / 100.f;
|
||||
}
|
||||
#endif
|
||||
return 1.f;
|
||||
}
|
||||
|
||||
bool isFullscreen() const
|
||||
|
||||
Reference in New Issue
Block a user