Index: core/fxge/dib/fx_dib_main.cpp |
diff --git a/core/fxge/dib/fx_dib_main.cpp b/core/fxge/dib/fx_dib_main.cpp |
index 85df71e11d1562e8254f46520f4b37fe6e2bb5aa..896551401af89061cbd789ea7f0fe6ed35926eba 100644 |
--- a/core/fxge/dib/fx_dib_main.cpp |
+++ b/core/fxge/dib/fx_dib_main.cpp |
@@ -344,6 +344,11 @@ void CFX_DIBitmap::Clear(uint32_t color) { |
case FXDIB_Rgb32: |
case FXDIB_Argb: { |
color = IsCmykImage() ? FXCMYK_TODIB(color) : FXARGB_TODIB(color); |
+#ifdef _SKIA_SUPPORT_ |
+ if (FXDIB_Rgb32 == GetFormat() && !IsCmykImage()) { |
+ color |= 0xFF000000; |
+ } |
+#endif |
for (int i = 0; i < m_Width; i++) { |
((uint32_t*)m_pBuffer)[i] = color; |
} |