Commit d97254d2 authored by Mark Striemer's avatar Mark Striemer
Browse files

Bug 1535437 - Part 1: Allow windows to resize outside of aspect ratio locking on Windows r=jmathies

Differential Revision: https://phabricator.services.mozilla.com/D51940

--HG--
extra : moz-landing-system : lando
parent 813cd66e
......@@ -1864,8 +1864,10 @@ void nsWindow::Resize(double aWidth, double aHeight, bool aRepaint) {
ClearThemeRegion();
double oldScale = mDefaultScale;
mResizeState = RESIZING;
VERIFY(
::SetWindowPos(mWnd, nullptr, 0, 0, width, GetHeight(height), flags));
mResizeState = NOT_RESIZING;
if (WinUtils::LogToPhysFactor(mWnd) != oldScale) {
ChangedDPI();
}
......@@ -1913,8 +1915,10 @@ void nsWindow::Resize(double aX, double aY, double aWidth, double aHeight,
ClearThemeRegion();
double oldScale = mDefaultScale;
mResizeState = RESIZING;
VERIFY(
::SetWindowPos(mWnd, nullptr, x, y, width, GetHeight(height), flags));
mResizeState = NOT_RESIZING;
if (WinUtils::LogToPhysFactor(mWnd) != oldScale) {
ChangedDPI();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment