gfx::Rect bounds = gfx::Rect(monitor_info.rcMonitor);
gfx::Display display(id, bounds);
display.set_work_area(gfx::Rect(monitor_info.rcWork));
- display.SetScaleAndBounds(gfx::win::GetDeviceScaleFactor(), bounds);
+ display.SetScaleAndBounds(gfx::GetDPIScale(), bounds);
DEVMODE mode;
memset(&mode, 0, sizeof(DEVMODE));
SingletonHwnd::GetInstance()->RemoveObserver(this);
}
-bool ScreenWin::IsDIPEnabled() {
- return IsInHighDPIMode();
-}
-
gfx::Point ScreenWin::GetCursorScreenPoint() {
POINT pt;
GetCursorPos(&pt);
gfx::Display display = GetDisplay(mi);
// TODO(kevers|girard): Test if these checks can be reintroduced for high-DIP
// once more of the app is DIP-aware.
- if (!(IsInHighDPIMode() || IsHighDPIEnabled())) {
+ if (GetDPIScale() == 1.0) {
DCHECK_EQ(GetSystemMetrics(SM_CXSCREEN), display.size().width());
DCHECK_EQ(GetSystemMetrics(SM_CYSCREEN), display.size().height());
}