diff options
Diffstat (limited to 'core/fxge/dib/cfx_dibitmap.cpp')
-rw-r--r-- | core/fxge/dib/cfx_dibitmap.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/core/fxge/dib/cfx_dibitmap.cpp b/core/fxge/dib/cfx_dibitmap.cpp index dcf5fdc7ab..011270494c 100644 --- a/core/fxge/dib/cfx_dibitmap.cpp +++ b/core/fxge/dib/cfx_dibitmap.cpp @@ -329,7 +329,8 @@ bool CFX_DIBitmap::LoadChannelFromAlpha( if (pSrcClone->GetWidth() != m_Width || pSrcClone->GetHeight() != m_Height) { if (pAlphaMask) { - pAlphaMask = pAlphaMask->StretchTo(m_Width, m_Height, 0, nullptr); + pAlphaMask = pAlphaMask->StretchTo(m_Width, m_Height, + FXDIB_ResampleOptions(), nullptr); if (!pAlphaMask) return false; } @@ -338,8 +339,8 @@ bool CFX_DIBitmap::LoadChannelFromAlpha( srcOffset = 0; } else if (pSrcClone->GetWidth() != m_Width || pSrcClone->GetHeight() != m_Height) { - RetainPtr<CFX_DIBitmap> pSrcMatched = - pSrcClone->StretchTo(m_Width, m_Height, 0, nullptr); + RetainPtr<CFX_DIBitmap> pSrcMatched = pSrcClone->StretchTo( + m_Width, m_Height, FXDIB_ResampleOptions(), nullptr); if (!pSrcMatched) return false; @@ -437,7 +438,8 @@ bool CFX_DIBitmap::MultiplyAlpha(const RetainPtr<CFX_DIBBase>& pSrcBitmap) { RetainPtr<CFX_DIBitmap> pSrcClone = pSrcBitmap.As<CFX_DIBitmap>(); if (pSrcBitmap->GetWidth() != m_Width || pSrcBitmap->GetHeight() != m_Height) { - pSrcClone = pSrcBitmap->StretchTo(m_Width, m_Height, 0, nullptr); + pSrcClone = pSrcBitmap->StretchTo(m_Width, m_Height, + FXDIB_ResampleOptions(), nullptr); if (!pSrcClone) return false; } |