mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Direct2D: Fix performance issue caused by the entire window painting unnecessarily
This commit is contained in:
parent
d22d287c6f
commit
fa0ab06d41
1 changed files with 1 additions and 4 deletions
|
|
@ -170,10 +170,6 @@ private:
|
|||
|
||||
RectangleList<int> getPaintAreas() const override
|
||||
{
|
||||
// Does the entire buffer need to be filled?
|
||||
if (swap.state == SwapChain::State::bufferAllocated)
|
||||
return swap.getSize();
|
||||
|
||||
return deferredRepaints;
|
||||
}
|
||||
|
||||
|
|
@ -422,6 +418,7 @@ Image Direct2DHwndContext::createSnapshot() const
|
|||
|
||||
void Direct2DHwndContext::clearTargetBuffer()
|
||||
{
|
||||
applyPendingClipList();
|
||||
pimpl->getDeviceContext()->Clear();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue