mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
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:
parent
541fe0552d
commit
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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user