From d5a84475da2c48a0047d4a9fd0b95b2fb95458ec Mon Sep 17 00:00:00 2001 From: reuk Date: Wed, 7 Jan 2026 12:35:03 +0000 Subject: [PATCH] HWNDComponentPeer: Remove handling for WM_ERASEBKGND We'll always paint over the entirity of the invalid area, so filling in the background is redundant work. --- modules/juce_gui_basics/native/juce_Windowing_windows.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/modules/juce_gui_basics/native/juce_Windowing_windows.cpp b/modules/juce_gui_basics/native/juce_Windowing_windows.cpp index 79dd866f12..fb8134f45a 100644 --- a/modules/juce_gui_basics/native/juce_Windowing_windows.cpp +++ b/modules/juce_gui_basics/native/juce_Windowing_windows.cpp @@ -3818,9 +3818,6 @@ private: break; case WM_ERASEBKGND: - if (hasTitleBar()) - break; - return 1; case WM_NCCALCSIZE: