diff options
author | Nicolas Pena <npm@chromium.org> | 2017-05-08 15:08:12 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-08 19:50:11 +0000 |
commit | 615bb96eb26570fd87004e2fa6f42eca0dbf79cd (patch) | |
tree | a2e2ece53fcaa41c5670ac7e7afd706373f2078f /xfa/fxgraphics/cfx_graphics.cpp | |
parent | 852fb12d554abbbda65bbbf3720117a0aad5a9c9 (diff) | |
download | pdfium-615bb96eb26570fd87004e2fa6f42eca0dbf79cd.tar.xz |
Remove default params in CFX_DIBSource
Change-Id: I9306afed2747e3b0054adeea1d39916cac47f5c5
Reviewed-on: https://pdfium-review.googlesource.com/5091
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxgraphics/cfx_graphics.cpp')
-rw-r--r-- | xfa/fxgraphics/cfx_graphics.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xfa/fxgraphics/cfx_graphics.cpp b/xfa/fxgraphics/cfx_graphics.cpp index b7595eea8d..c02c30676b 100644 --- a/xfa/fxgraphics/cfx_graphics.cpp +++ b/xfa/fxgraphics/cfx_graphics.cpp @@ -328,14 +328,15 @@ void CFX_Graphics::RenderDeviceStretchImage( m1.Concat(*matrix); } CFX_RetainPtr<CFX_DIBitmap> bmp1 = - source->StretchTo((int32_t)rect.Width(), (int32_t)rect.Height()); + source->StretchTo(static_cast<int32_t>(rect.Width()), + static_cast<int32_t>(rect.Height()), 0, nullptr); CFX_Matrix m2(rect.Width(), 0.0, 0.0, rect.Height(), rect.left, rect.top); m2.Concat(m1); int32_t left; int32_t top; CFX_RetainPtr<CFX_DIBitmap> bmp2 = bmp1->FlipImage(false, true); - CFX_RetainPtr<CFX_DIBitmap> bmp3 = bmp2->TransformTo(&m2, left, top); + CFX_RetainPtr<CFX_DIBitmap> bmp3 = bmp2->TransformTo(&m2, &left, &top); CFX_RectF r = GetClipRect(); CFX_RetainPtr<CFX_DIBitmap> bitmap = m_renderDevice->GetBitmap(); bitmap->CompositeBitmap(FXSYS_round(r.left), FXSYS_round(r.top), @@ -510,7 +511,7 @@ void CFX_Graphics::SetDIBitsWithMatrix( int32_t left; int32_t top; CFX_RetainPtr<CFX_DIBitmap> bmp1 = source->FlipImage(false, true); - CFX_RetainPtr<CFX_DIBitmap> bmp2 = bmp1->TransformTo(&m, left, top); + CFX_RetainPtr<CFX_DIBitmap> bmp2 = bmp1->TransformTo(&m, &left, &top); m_renderDevice->SetDIBits(bmp2, left, top); } } |