Index: core/src/fxge/dib/fx_dib_composite.cpp |
diff --git a/core/src/fxge/dib/fx_dib_composite.cpp b/core/src/fxge/dib/fx_dib_composite.cpp |
index 375b7c110e82b23428b51d7aaac985ccd8822f02..ae72fc5a43969908d552a936efa4d268426cf5e1 100644 |
--- a/core/src/fxge/dib/fx_dib_composite.cpp |
+++ b/core/src/fxge/dib/fx_dib_composite.cpp |
@@ -4148,15 +4148,7 @@ FX_BOOL CFX_DIBitmap::CompositeBitmap(int dest_left, int dest_top, int width, in |
} |
int dest_Bpp = m_bpp / 8; |
int src_Bpp = pSrcBitmap->GetBPP() / 8; |
- FX_BOOL bRgb = FALSE; |
- FX_BOOL bCmyk = FALSE; |
- if (src_Bpp > 1) { |
- if (pSrcBitmap->IsCmykImage()) { |
- bCmyk = TRUE; |
- } else { |
- bRgb = TRUE; |
- } |
- } |
+ FX_BOOL bRgb = src_Bpp > 1 && !pSrcBitmap->IsCmykImage(); |
CFX_DIBitmap* pSrcAlphaMask = pSrcBitmap->m_pAlphaMask; |
for (int row = 0; row < height; row ++) { |
FX_LPBYTE dest_scan = m_pBuffer + (dest_top + row) * m_Pitch + dest_left * dest_Bpp; |