mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1246389 - Resize window appropriately on WM_DPICHANGED messages for dynamic resolution changes. r=emk
This commit is contained in:
parent
d0f89df44d
commit
670be3a9fa
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user