зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1513066 - Scale monitor size when forcing fullscreen. r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D14328 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
d29a39cdfd
Коммит
87f5a1c15a
|
@ -6511,11 +6511,12 @@ void nsWindow::OnWindowPosChanging(LPWINDOWPOS& info) {
|
|||
if (screen) {
|
||||
int32_t x, y, width, height;
|
||||
screen->GetRectDisplayPix(&x, &y, &width, &height);
|
||||
double scale = GetDesktopToDeviceScale().scale;
|
||||
|
||||
info->x = x;
|
||||
info->y = y;
|
||||
info->cx = width;
|
||||
info->cy = height;
|
||||
info->x = NSToIntRound(x * scale);
|
||||
info->y = NSToIntRound(y * scale);
|
||||
info->cx = NSToIntRound(width * scale);
|
||||
info->cy = NSToIntRound(height * scale);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче