summaryrefslogtreecommitdiff
path: root/vcl/qa
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2020-12-02 09:08:49 +0100
committerMiklos Vajna <vmiklos@collabora.com>2020-12-02 10:14:27 +0100
commitd8fe51f9a4d1669578c162d87a6e65125096d720 (patch)
tree108dba7e03750313851dcbb771ec94178b7d35c5 /vcl/qa
parentea9863c0104bfa74e7542f850768c2c0ee63a577 (diff)
pdfium: add width/height/format wrappers for bitmap
Change-Id: Ic8c85c4224b89d1e7bb8ded1a11c5fd8139f5701 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107044 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'vcl/qa')
-rw-r--r--vcl/qa/cppunit/pdfexport/pdfexport.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/qa/cppunit/pdfexport/pdfexport.cxx b/vcl/qa/cppunit/pdfexport/pdfexport.cxx
index eaf905986928..7af85573be40 100644
--- a/vcl/qa/cppunit/pdfexport/pdfexport.cxx
+++ b/vcl/qa/cppunit/pdfexport/pdfexport.cxx
@@ -1503,8 +1503,8 @@ CPPUNIT_TEST_FIXTURE(PdfExportTest, testTdf128630)
std::unique_ptr<vcl::pdf::PDFiumBitmap> pBitmap = pPageObject->getImageBitmap();
CPPUNIT_ASSERT(pBitmap);
- int nWidth = FPDFBitmap_GetWidth(pBitmap->getPointer());
- int nHeight = FPDFBitmap_GetHeight(pBitmap->getPointer());
+ int nWidth = pBitmap->getWidth();
+ int nHeight = pBitmap->getHeight();
// Without the accompanying fix in place, this test would have failed with:
// assertion failed
// - Expression: nWidth != nHeight
@@ -1845,8 +1845,8 @@ CPPUNIT_TEST_FIXTURE(PdfExportTest, testReduceSmallImage)
// Make sure we don't scale down a tiny bitmap.
std::unique_ptr<vcl::pdf::PDFiumBitmap> pBitmap = pPageObject->getImageBitmap();
CPPUNIT_ASSERT(pBitmap);
- int nWidth = FPDFBitmap_GetWidth(pBitmap->getPointer());
- int nHeight = FPDFBitmap_GetHeight(pBitmap->getPointer());
+ int nWidth = pBitmap->getWidth();
+ int nHeight = pBitmap->getHeight();
// Without the accompanying fix in place, this test would have failed with:
// - Expected: 16
// - Actual : 6
@@ -1900,8 +1900,8 @@ CPPUNIT_TEST_FIXTURE(PdfExportTest, testReduceImage)
// Make sure we don't scale down a bitmap.
std::unique_ptr<vcl::pdf::PDFiumBitmap> pBitmap = pPageObject->getImageBitmap();
CPPUNIT_ASSERT(pBitmap);
- int nWidth = FPDFBitmap_GetWidth(pBitmap->getPointer());
- int nHeight = FPDFBitmap_GetHeight(pBitmap->getPointer());
+ int nWidth = pBitmap->getWidth();
+ int nHeight = pBitmap->getHeight();
// Without the accompanying fix in place, this test would have failed with:
// - Expected: 160
// - Actual : 6