From ac91f6b598f5e0373176e6e9b860c1e135fddf65 Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Wed, 2 May 2018 16:28:22 +0000 Subject: Pass DPI as CFX_Size in XFA_DrawImage. Change-Id: Ifbcb727402c1c28a6e8abe02511d6da6828c02f7 Reviewed-on: https://pdfium-review.googlesource.com/31915 Commit-Queue: Henrique Nakashima Reviewed-by: Lei Zhang Reviewed-by: Ryan Harrison --- xfa/fxfa/cxfa_ffimageedit.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'xfa/fxfa/cxfa_ffimageedit.cpp') diff --git a/xfa/fxfa/cxfa_ffimageedit.cpp b/xfa/fxfa/cxfa_ffimageedit.cpp index f07bc1e267..c1d1a09bac 100644 --- a/xfa/fxfa/cxfa_ffimageedit.cpp +++ b/xfa/fxfa/cxfa_ffimageedit.cpp @@ -89,9 +89,8 @@ void CXFA_FFImageEdit::RenderWidget(CXFA_Graphics* pGS, iAspect = image->GetAspect(); } - CFX_Size dpi = m_pNode->GetImageEditDpi(); - XFA_DrawImage(pGS, rtImage, mtRotate, pDIBitmap, iAspect, dpi.width, - dpi.height, iHorzAlign, iVertAlign); + XFA_DrawImage(pGS, rtImage, mtRotate, pDIBitmap, iAspect, + m_pNode->GetImageEditDpi(), iHorzAlign, iVertAlign); } bool CXFA_FFImageEdit::AcceptsFocusOnButtonDown(uint32_t dwFlags, -- cgit v1.2.3