We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 875a617 commit ac9b41dCopy full SHA for ac9b41d
windows/window_manager.cpp
@@ -720,10 +720,8 @@ flutter::EncodableMap WindowManager::GetPrimaryDisplay(
720
info.cbSize = sizeof(MONITORINFO);
721
::GetMonitorInfo(monitor, &info);
722
723
- double width =
724
- (info.rcMonitor.right - info.rcMonitor.left) / devicePixelRatio;
725
- double height =
726
- (info.rcMonitor.bottom - info.rcMonitor.top) / devicePixelRatio;
+ double width = (info.rcWork.right - info.rcWork.left) / devicePixelRatio;
+ double height = (info.rcWork.bottom - info.rcWork.top) / devicePixelRatio;
727
728
flutter::EncodableMap size = flutter::EncodableMap();
729
size[flutter::EncodableValue("width")] = flutter::EncodableValue(width);
0 commit comments