mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Direct2D: Tidy up rect/point creation
This commit is contained in:
parent
102ef24061
commit
d64e963b14
1 changed files with 2 additions and 5 deletions
|
|
@ -129,11 +129,8 @@ public:
|
|||
|
||||
for (const auto& area : preparing->getPaintAreas())
|
||||
{
|
||||
D2D1_POINT_2U destPoint { (uint32) area.getX(), (uint32) area.getY() };
|
||||
D2D1_RECT_U sourceRect { (uint32) area.getX(),
|
||||
(uint32) area.getY(),
|
||||
(uint32) area.getRight(),
|
||||
(uint32) area.getBottom() };
|
||||
const auto destPoint = D2DUtilities::toPOINT_2U (area.getPosition());
|
||||
const auto sourceRect = D2DUtilities::toRECT_U (area);
|
||||
readyToDisplay->getPresentationBitmap()->CopyFromBitmap (&destPoint, preparing->getPresentationBitmap(), &sourceRect);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue