From dfa94981e41e8f97f9b351e9ad5e7ec68935ef6b Mon Sep 17 00:00:00 2001 From: Matt Gonzalez Date: Thu, 9 May 2024 19:17:23 -0700 Subject: [PATCH] D2D: Pass the clearImage flag to the BitmapData backup image https://forum.juce.com/t/the-juce-8-preview-branch-is-available-now/60950/123 --- modules/juce_graphics/native/juce_Direct2DImage_windows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_graphics/native/juce_Direct2DImage_windows.cpp b/modules/juce_graphics/native/juce_Direct2DImage_windows.cpp index cb95e6fb79..7a676f2588 100644 --- a/modules/juce_graphics/native/juce_Direct2DImage_windows.cpp +++ b/modules/juce_graphics/native/juce_Direct2DImage_windows.cpp @@ -266,7 +266,7 @@ void Direct2DPixelData::initialiseBitmapData (Image::BitmapData& bitmap, int x, // If the user doesn't want to read from the image, then we may need to create a blank image that they can write to. if (! backup.isValid()) - backup = Image { SoftwareImageType{}.create (pixelFormat, width, height, false) }; + backup = Image { SoftwareImageType{}.create (pixelFormat, width, height, clearImage) }; // Redirect the BitmapData to our backup software image. backup.getPixelData()->initialiseBitmapData (bitmap, x, y, mode);