Browse Source

Fixed an issue where repaints could be dropped when the host is also sending many repaints to the plug-in

tags/2021-05-28
hogliux 9 years ago
parent
commit
c94be5db8b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm

+ 1
- 1
modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm View File

@@ -910,6 +910,7 @@ public:
for (const Rectangle<float>* 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);
}


Loading…
Cancel
Save