1
0
Fork 0
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:
reuk 2024-10-09 18:13:46 +01:00
parent d22d287c6f
commit fa0ab06d41

View file

@ -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();
}