From aaaa9e6afb60dd7de223a50721f7e12967ba64bd Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 12 Mar 2019 09:24:15 +0000 Subject: [PATCH] Windows: Fixed a bug causing DPI unaware desktop windows to not fill the entire screen when maximised --- modules/juce_gui_basics/native/juce_win32_Windowing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/native/juce_win32_Windowing.cpp b/modules/juce_gui_basics/native/juce_win32_Windowing.cpp index 8142dbd28f..229fac6bd2 100644 --- a/modules/juce_gui_basics/native/juce_win32_Windowing.cpp +++ b/modules/juce_gui_basics/native/juce_win32_Windowing.cpp @@ -3368,7 +3368,7 @@ private: forceDisplayUpdate(); if (fullScreen && ! isMinimised()) - setWindowPos (hwnd, Desktop::getInstance().getDisplays().findDisplayForRect (component.getScreenBounds()).userArea, + setWindowPos (hwnd, ScalingHelpers::scaledScreenPosToUnscaled (component, Desktop::getInstance().getDisplays().findDisplayForRect (component.getScreenBounds()).userArea), SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOZORDER | SWP_NOSENDCHANGING); }