From 1fbfeb6039f4429292d4324b0b9efe8ab06dfa34 Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Thu, 8 Jun 2023 11:12:58 +0100 Subject: [PATCH] iOS: Fix a constant redrawing bug --- modules/juce_gui_basics/native/juce_UIViewComponentPeer_ios.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/juce_gui_basics/native/juce_UIViewComponentPeer_ios.mm b/modules/juce_gui_basics/native/juce_UIViewComponentPeer_ios.mm index c5db8159d4..b72a86122a 100644 --- a/modules/juce_gui_basics/native/juce_UIViewComponentPeer_ios.mm +++ b/modules/juce_gui_basics/native/juce_UIViewComponentPeer_ios.mm @@ -2198,6 +2198,8 @@ void UIViewComponentPeer::displayLinkCallback() for (const auto& r : deferredRepaints) [view setNeedsDisplayInRect: convertToCGRect (r)]; + + deferredRepaints.clear(); } //==============================================================================