diff options
-rw-r--r-- | xfa/fxfa/cxfa_imagerenderer.cpp | 5 | ||||
-rw-r--r-- | xfa/fxfa/cxfa_imagerenderer.h | 1 |
2 files changed, 0 insertions, 6 deletions
diff --git a/xfa/fxfa/cxfa_imagerenderer.cpp b/xfa/fxfa/cxfa_imagerenderer.cpp index 4027a948f3..e5b220b497 100644 --- a/xfa/fxfa/cxfa_imagerenderer.cpp +++ b/xfa/fxfa/cxfa_imagerenderer.cpp @@ -40,9 +40,6 @@ bool CXFA_ImageRenderer::Start() { int dest_height = image_rect.Height(); if ((fabs(m_ImageMatrix.b) >= 0.5f || m_ImageMatrix.a == 0) || (fabs(m_ImageMatrix.c) >= 0.5f || m_ImageMatrix.d == 0)) { - if (m_bPrint && !(m_pDevice->GetRenderCaps() & FXRC_BLEND_MODE)) - return false; - RetainPtr<CFX_DIBSource> pDib = m_pDIBSource; if (m_pDIBSource->HasAlpha() && !(m_pDevice->GetRenderCaps() & FXRC_ALPHA_IMAGE) && @@ -81,8 +78,6 @@ bool CXFA_ImageRenderer::Start() { return false; } } - if (m_bPrint && !(m_pDevice->GetRenderCaps() & FXRC_BLEND_MODE)) - return true; FX_RECT clip_box = m_pDevice->GetClipBox(); FX_RECT dest_rect = clip_box; diff --git a/xfa/fxfa/cxfa_imagerenderer.h b/xfa/fxfa/cxfa_imagerenderer.h index e35a5f0a09..cdc9464f92 100644 --- a/xfa/fxfa/cxfa_imagerenderer.h +++ b/xfa/fxfa/cxfa_imagerenderer.h @@ -46,7 +46,6 @@ class CXFA_ImageRenderer { std::unique_ptr<CFX_ImageTransformer> m_pTransformer; std::unique_ptr<CFX_ImageRenderer> m_DeviceHandle; int32_t m_BlendType = FXDIB_BLEND_NORMAL; - bool m_bPrint = false; }; #endif // XFA_FXFA_CXFA_IMAGERENDERER_H_ |