From 2404225e09b4b35d657724027d5835d71857a5e8 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 13 Jan 2023 12:43:50 +0400 Subject: [PATCH] Allow window to receive WM_DPICHANGED in Qt. --- ui/platform/win/ui_window_win.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ui/platform/win/ui_window_win.cpp b/ui/platform/win/ui_window_win.cpp index 995c8d5..73572ce 100644 --- a/ui/platform/win/ui_window_win.cpp +++ b/ui/platform/win/ui_window_win.cpp @@ -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;