1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Direct2D: Make checkPaintReady check more robust

This additionally ensures that we'll paint when the swap chain has just
been resized
This commit is contained in:
reuk 2024-10-01 14:42:21 +01:00
parent d64e963b14
commit 9b36effbf4
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -401,7 +401,7 @@ private:
bool ready = Pimpl::checkPaintReady();
ready &= swap.canPaint();
ready &= compositionTree.has_value();
ready &= deferredRepaints.getNumRectangles() > 0 || resizing;
ready &= ! getPaintAreas().isEmpty();
ready &= presentation.getPresentation() != nullptr;
return ready;
}