From b4144aa78cd88d26d8937fefe34a0654cc1e64cd Mon Sep 17 00:00:00 2001 From: reuk Date: Tue, 20 Jan 2026 16:42:38 +0000 Subject: [PATCH] Windows: Invalidate entire window when custom scale factor changes This fixes a bug where the window area intersecting the old and new sizes would not be repainted correctly. --- modules/juce_gui_basics/native/juce_Windowing_windows.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/juce_gui_basics/native/juce_Windowing_windows.cpp b/modules/juce_gui_basics/native/juce_Windowing_windows.cpp index 14c0a63083..5df9d27788 100644 --- a/modules/juce_gui_basics/native/juce_Windowing_windows.cpp +++ b/modules/juce_gui_basics/native/juce_Windowing_windows.cpp @@ -2036,6 +2036,7 @@ public: if (approximatelyEqual (prev, next)) return; + InvalidateRect (hwnd, nullptr, FALSE); scaleFactorListeners.call ([&] (ScaleFactorListener& l) { l.nativeScaleFactorChanged (next); }); }