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:
parent
570fd4b65c
commit
8a1bf07f14
1 changed files with 3 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue