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

Direct2DImage: Flush CPU-only changes if necessary when copying images

This commit is contained in:
reuk 2025-06-30 20:04:56 +01:00
parent 21b0cd4663
commit 5bb20e8e04
No known key found for this signature in database

View file

@ -680,9 +680,12 @@ void Direct2DPixelData::copyPages (ComSmartPtr<ID2D1Device1> deviceToUse,
Point<int> dstPoint,
Rectangle<int> srcRect)
{
auto& srcPages = srcData.getPagesStructForDevice (deviceToUse);
srcPages.getPages();
copyAcrossMultiplePages (dstData.getPagesStructForDevice (deviceToUse),
dstPoint,
srcData.getPagesStructForDevice (deviceToUse),
srcPages,
srcRect,
copyDstFromSrc);