vcl/source/filter/ipdf/pdfread.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 8e6e32ace693f0ca8a1b6fefd81832c4c7e7d5af Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Mon Jul 19 20:22:23 2021 +0200 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Tue Jul 20 08:37:46 2021 +0200 vcl: update outdated comments in pdfread These fake named arguments are useful when a function takes a lot of boolean args, but the comments didn't match the function declaration anymore. Fix that. Change-Id: I660bf2d496c463e1a027e5d3bdb8d6d7f07d0f55 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119231 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmik...@collabora.com> diff --git a/vcl/source/filter/ipdf/pdfread.cxx b/vcl/source/filter/ipdf/pdfread.cxx index d97259d52807..87af9c6c5c90 100644 --- a/vcl/source/filter/ipdf/pdfread.cxx +++ b/vcl/source/filter/ipdf/pdfread.cxx @@ -172,7 +172,7 @@ size_t RenderPDFBitmaps(const void* pBuffer, int nSize, std::vector<BitmapEx>& r const size_t nPageWidth = pointToPixel(nPageWidthPoints, fResolutionDPI); const size_t nPageHeight = pointToPixel(nPageHeightPoints, fResolutionDPI); std::unique_ptr<vcl::pdf::PDFiumBitmap> pPdfBitmap - = pPdfium->createBitmap(nPageWidth, nPageHeight, /*alpha=*/1); + = pPdfium->createBitmap(nPageWidth, nPageHeight, /*nAlpha=*/1); if (!pPdfBitmap) break; @@ -185,8 +185,8 @@ size_t RenderPDFBitmaps(const void* pBuffer, int nSize, std::vector<BitmapEx>& r } const sal_uInt32 nColor = bTransparent ? 0x00000000 : 0xFFFFFFFF; pPdfBitmap->fillRect(0, 0, nPageWidth, nPageHeight, nColor); - pPdfBitmap->renderPageBitmap(pPdfDocument.get(), pPdfPage.get(), /*start_x=*/0, - /*start_y=*/0, nPageWidth, nPageHeight); + pPdfBitmap->renderPageBitmap(pPdfDocument.get(), pPdfPage.get(), /*nStartX=*/0, + /*nStartY=*/0, nPageWidth, nPageHeight); // Save the buffer as a bitmap. Bitmap aBitmap(Size(nPageWidth, nPageHeight), vcl::PixelFormat::N24_BPP); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits