diff options
author | Bo Xu <bo_xu@foxitsoftware.com> | 2014-07-23 10:09:08 -0700 |
---|---|---|
committer | Bo Xu <bo_xu@foxitsoftware.com> | 2014-07-23 10:09:08 -0700 |
commit | 0f14185aecf420e18cd49abd17c7c9585bbb82bb (patch) | |
tree | 0cfff7b0dc47ad105be48459c8dcac0a6f762747 /fpdfsdk/src/fpdfview.cpp | |
parent | 9e0177a5337117f00d2a891d17d3dd491764ce24 (diff) | |
download | pdfium-0f14185aecf420e18cd49abd17c7c9585bbb82bb.tar.xz |
Fix FPDF_RenderPage 2x zoom in when bBackgroundAlphaNeeded is true
BUG=179413
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/410073002
Diffstat (limited to 'fpdfsdk/src/fpdfview.cpp')
-rw-r--r-- | fpdfsdk/src/fpdfview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/src/fpdfview.cpp b/fpdfsdk/src/fpdfview.cpp index b6b89289e4..b950ed8641 100644 --- a/fpdfsdk/src/fpdfview.cpp +++ b/fpdfsdk/src/fpdfview.cpp @@ -458,7 +458,7 @@ DLLEXPORT void STDCALL FPDF_RenderPage(HDC dc, FPDF_PAGE page, int start_x, int #endif } else - pContext->m_pDevice = FX_NEW CFX_WindowsDevice(dc); + pContext->m_pDevice = FX_NEW CFX_WindowsDevice(dc); if (flags & FPDF_NO_CATCH) Func_RenderPage(pContext, page, start_x, start_y, size_x, size_y, rotate, flags,TRUE,NULL); else { @@ -479,7 +479,7 @@ DLLEXPORT void STDCALL FPDF_RenderPage(HDC dc, FPDF_PAGE page, int start_x, int pDst->Create(pBitmap->GetWidth(), pBitmap->GetHeight(),FXDIB_Rgb32); FXSYS_memcpy(pDst->GetBuffer(), pBitmap->GetBuffer(), pBitmap->GetPitch()*pBitmap->GetHeight()); // WinDC.SetDIBits(pDst,0,0); - WinDC.StretchDIBits(pDst,0,0,size_x*2,size_y*2); + WinDC.StretchDIBits(pDst,0,0,size_x,size_y); delete pDst; } else |