Allow window to receive WM_DPICHANGED in Qt.

This commit is contained in:
John Preston 2023-01-13 12:43:50 +04:00
parent a113e50050
commit 2404225e09

View file

@ -581,12 +581,9 @@ bool WindowHelper::handleNativeEvent(
_systemButtonOver.fire(systemButtonHitTest(*result));
} return true;
// should return true for Qt not to change window size
// when moving the window between screens
// change to false once runtime scale change would be supported
case WM_DPICHANGED: {
_dpi = LOWORD(wParam);
} return true;
} return false;
}
return false;