Bug 1246389 - Resize window appropriately on WM_DPICHANGED messages for dynamic resolution changes. r=emk

This commit is contained in:
Jonathan Kew 2016-02-29 13:09:04 +00:00
parent d0f89df44d
commit 670be3a9fa

View File

@ -6881,7 +6881,8 @@ nsWindow::OnDPIChanged(int32_t x, int32_t y, int32_t width, int32_t height)
double oldScale = mDefaultScale;
mDefaultScale = -1.0; // force recomputation of scale factor
double newScale = GetDefaultScaleInternal();
if (mResizeState != NOT_RESIZING) {
if (mResizeState != RESIZING) {
// We want to try and maintain the size of the client area, rather than
// the overall size of the window including non-client area, so we prefer
// to calculate the new size instead of using Windows' suggested values.