зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1457189 - Dispatch the resolutionchange event when changing the display resolution even if DPI remains the same. r=jimm
MozReview-Commit-ID: A0thvn5bBDy --HG-- extra : rebase_source : 50795a1b7f7704b0cb636faf2f60acd89ea5bfab
This commit is contained in:
Родитель
541fe0552d
Коммит
3277c04273
|
@ -5919,6 +5919,9 @@ nsWindow::ProcessMessage(UINT msg, WPARAM& wParam, LPARAM& lParam,
|
|||
case WM_DISPLAYCHANGE:
|
||||
{
|
||||
ScreenHelperWin::RefreshScreens();
|
||||
if (mWidgetListener) {
|
||||
mWidgetListener->UIResolutionChanged();
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -121,7 +121,6 @@ void nsWindowBase::ChangedDPI()
|
|||
if (presShell) {
|
||||
presShell->BackingScaleFactorChanged();
|
||||
}
|
||||
mWidgetListener->UIResolutionChanged();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче