summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/qa/cppunit/GraphicTest.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/qa/cppunit/GraphicTest.cxx b/vcl/qa/cppunit/GraphicTest.cxx
index 09bf18782708..d8875666431e 100644
--- a/vcl/qa/cppunit/GraphicTest.cxx
+++ b/vcl/qa/cppunit/GraphicTest.cxx
@@ -1331,8 +1331,9 @@ void GraphicTest::testLoadSVGZ()
{
Graphic aGraphic = loadGraphic(u"TypeDetectionExample.svgz");
CPPUNIT_ASSERT_EQUAL(GraphicType::Bitmap, aGraphic.GetType());
- CPPUNIT_ASSERT_EQUAL(tools::Long(100), aGraphic.GetSizePixel().Width());
- CPPUNIT_ASSERT_EQUAL(tools::Long(100), aGraphic.GetSizePixel().Height());
+ const auto[scalingX, scalingY] = getDPIScaling();
+ CPPUNIT_ASSERT_EQUAL(tools::Long(100 * scalingX), aGraphic.GetSizePixel().Width());
+ CPPUNIT_ASSERT_EQUAL(tools::Long(100 * scalingY), aGraphic.GetSizePixel().Height());
}
void GraphicTest::testAvailableThreaded()