diff --git a/vcl/skia/gdiimpl.cxx b/vcl/skia/gdiimpl.cxx index f8f885b94fc9..ffdeb81b2ad2 100644 --- a/vcl/skia/gdiimpl.cxx +++ b/vcl/skia/gdiimpl.cxx @@ -1405,7 +1405,10 @@ std::shared_ptr SkiaSalGraphicsImpl::getBitmap(tools::Long nX, tools: { // Some tests require exact pixel values and would be confused by smooth-scaling. // And some draw something smooth and not smooth-scaling there would break the checks. - if (isUnitTestRunning("BackendTest__testDrawHaflEllipseAAWithPolyLineB2D_") + // When running on macOS with a Retina display, several BackendTest unit tests + // also need a lower quality scaling level. + if (getWindowScaling() != 1 + || isUnitTestRunning("BackendTest__testDrawHaflEllipseAAWithPolyLineB2D_") || isUnitTestRunning("BackendTest__testDrawRectAAWithLine_") || isUnitTestRunning("GraphicsRenderTest__testDrawRectAAWithLine")) {