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

Direct2D: Adjust return type of getPaintAreas in Direct2DHwndContext

This commit is contained in:
reuk 2024-08-13 12:02:46 +01:00
parent 570fd4b65c
commit 8a1bf07f14
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -70,7 +70,7 @@ public:
paintAreas = std::move (areas);
}
auto getPaintAreas() const
const RectangleList<int>& getPaintAreas() const
{
return paintAreas;
}
@ -346,11 +346,8 @@ private:
return hr;
}
if (! swapChainThread)
{
if (swap.swapChainEvent.has_value())
swapChainThread = std::make_unique<SwapChainThread> (*this, directX->getD2DMultithread());
}
if (! swapChainThread && swap.swapChainEvent.has_value())
swapChainThread = std::make_unique<SwapChainThread> (*this, directX->getD2DMultithread());
if (! compositionTree.has_value())
compositionTree = CompositionTree::create (adapter->dxgiDevice, hwnd, swap.chain);