summaryrefslogtreecommitdiff
path: root/core/fxge/dib/cstretchengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxge/dib/cstretchengine.cpp')
-rw-r--r--core/fxge/dib/cstretchengine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fxge/dib/cstretchengine.cpp b/core/fxge/dib/cstretchengine.cpp
index b7aa672a46..9d3923adab 100644
--- a/core/fxge/dib/cstretchengine.cpp
+++ b/core/fxge/dib/cstretchengine.cpp
@@ -229,8 +229,8 @@ CStretchEngine::CStretchEngine(ScanlineComposerIface* pDestBitmap,
const RetainPtr<CFX_DIBSource>& pSrcBitmap,
int flags)
: m_DestFormat(dest_format),
- m_DestBpp(dest_format & 0xff),
- m_SrcBpp(pSrcBitmap->GetFormat() & 0xff),
+ m_DestBpp(GetBppFromFormat(dest_format)),
+ m_SrcBpp(GetBppFromFormat(pSrcBitmap->GetFormat())),
m_bHasAlpha(pSrcBitmap->GetFormat() & 0x200),
m_pSource(pSrcBitmap),
m_pSrcPalette(pSrcBitmap->GetPalette()),