mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Direct2D: Fix bug where Image::clear did not respect the requested area
This commit is contained in:
parent
515c42db4b
commit
6374540f19
1 changed files with 1 additions and 1 deletions
|
|
@ -1314,7 +1314,7 @@ void Direct2DGraphicsContext::fillRect (const Rectangle<int>& r, bool replaceExi
|
|||
{
|
||||
applyPendingClipList();
|
||||
|
||||
const auto asRectF = D2DUtilities::toRECT_F (getPimpl()->getFrameSize().toFloat());
|
||||
const auto asRectF = D2DUtilities::toRECT_F (r.toFloat());
|
||||
ComSmartPtr<ID2D1RectangleGeometry> rectGeometry;
|
||||
getPimpl()->getDirect2DFactory()->CreateRectangleGeometry (asRectF,
|
||||
rectGeometry.resetAndGetPointerAddress());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue