summaryrefslogtreecommitdiff
path: root/core/fxge/dib/cfx_bitmapcomposer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxge/dib/cfx_bitmapcomposer.cpp')
-rw-r--r--core/fxge/dib/cfx_bitmapcomposer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/fxge/dib/cfx_bitmapcomposer.cpp b/core/fxge/dib/cfx_bitmapcomposer.cpp
index bd634ad574..604c0c2ce0 100644
--- a/core/fxge/dib/cfx_bitmapcomposer.cpp
+++ b/core/fxge/dib/cfx_bitmapcomposer.cpp
@@ -45,6 +45,7 @@ void CFX_BitmapComposer::Compose(const CFX_RetainPtr<CFX_DIBitmap>& pDest,
m_bRgbByteOrder = bRgbByteOrder;
m_BlendType = blend_type;
}
+
bool CFX_BitmapComposer::SetInfo(int width,
int height,
FXDIB_Format src_format,
@@ -107,11 +108,12 @@ void CFX_BitmapComposer::ComposeScanline(int line,
return;
}
const uint8_t* clip_scan = nullptr;
- if (m_pClipMask)
+ if (m_pClipMask) {
clip_scan = m_pClipMask->GetBuffer() +
(m_DestTop + line - m_pClipRgn->GetBox().top) *
m_pClipMask->GetPitch() +
(m_DestLeft - m_pClipRgn->GetBox().left);
+ }
uint8_t* dest_scan =
const_cast<uint8_t*>(m_pBitmap->GetScanline(line + m_DestTop)) +
m_DestLeft * m_pBitmap->GetBPP() / 8;