summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_ffimage.cpp
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2018-05-02 16:28:22 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-02 16:28:22 +0000
commitac91f6b598f5e0373176e6e9b860c1e135fddf65 (patch)
treeba8c1f8bcb18291836319dc6cc39b452c840ef76 /xfa/fxfa/cxfa_ffimage.cpp
parent32ea6d0f847dab80e5fc03142ffa2238b552b357 (diff)
downloadpdfium-ac91f6b598f5e0373176e6e9b860c1e135fddf65.tar.xz
Pass DPI as CFX_Size in XFA_DrawImage.
Change-Id: Ifbcb727402c1c28a6e8abe02511d6da6828c02f7 Reviewed-on: https://pdfium-review.googlesource.com/31915 Commit-Queue: Henrique Nakashima <hnakashima@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffimage.cpp')
-rw-r--r--xfa/fxfa/cxfa_ffimage.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/xfa/fxfa/cxfa_ffimage.cpp b/xfa/fxfa/cxfa_ffimage.cpp
index 15916de456..9d9010158e 100644
--- a/xfa/fxfa/cxfa_ffimage.cpp
+++ b/xfa/fxfa/cxfa_ffimage.cpp
@@ -68,8 +68,7 @@ void CXFA_FFImage::RenderWidget(CXFA_Graphics* pGS,
auto* value = m_pNode->GetFormValueIfExists();
CXFA_Image* image = value ? value->GetImageIfExists() : nullptr;
if (image) {
- CFX_Size dpi = m_pNode->GetImageDpi();
XFA_DrawImage(pGS, rtImage, mtRotate, pDIBitmap, image->GetAspect(),
- dpi.width, dpi.height, iHorzAlign, iVertAlign);
+ m_pNode->GetImageDpi(), iHorzAlign, iVertAlign);
}
}