From c94be5db8bd00f978a1ecee62d0c5e6cef9d5408 Mon Sep 17 00:00:00 2001 From: hogliux Date: Wed, 31 Aug 2016 16:57:59 +0100 Subject: [PATCH] Fixed an issue where repaints could be dropped when the host is also sending many repaints to the plug-in --- modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm b/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm index b7ffc69861..ecb71b12e1 100644 --- a/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm +++ b/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm @@ -910,6 +910,7 @@ public: for (const Rectangle* i = deferredRepaints.begin(), *e = deferredRepaints.end(); i != e; ++i) [view setNeedsDisplayInRect: makeNSRect (*i)]; + lastRepaintTime = Time::getCurrentTime(); deferredRepaints.clear(); } @@ -927,7 +928,6 @@ public: void invokePaint (LowLevelGraphicsContext& context) { - lastRepaintTime = Time::getCurrentTime(); handlePaint (context); }