diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2022-02-01 14:42:19 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2022-02-03 10:28:50 +0100 |
commit | 5d3c8da8c320a950d94e0809c165dac8482f8837 (patch) | |
tree | a8b658f209f9c36efb6384d50fb2457df611e496 /vcl/skia/gdiimpl.cxx | |
parent | 2b95b55983689d5476e89c27177351e2d6785047 (diff) |
handle graphics test specially in backends too if needed
The backend test unittest already needs some special handling (such
as not smooth-scaling in Skia backend when in HiDPI mode), but
graphics test were failing because the name of the unit test was
used for detecting whether to do special handling.
Change-Id: Ieb23915f1eeafc13c921de06475cb761dc4c485f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129292
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl/skia/gdiimpl.cxx')
-rw-r--r-- | vcl/skia/gdiimpl.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/skia/gdiimpl.cxx b/vcl/skia/gdiimpl.cxx index c2efb62f96dc..c253ceb3a2df 100644 --- a/vcl/skia/gdiimpl.cxx +++ b/vcl/skia/gdiimpl.cxx @@ -1372,7 +1372,8 @@ std::shared_ptr<SalBitmap> 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_") - || isUnitTestRunning("BackendTest__testDrawRectAAWithLine_")) + || isUnitTestRunning("BackendTest__testDrawRectAAWithLine_") + || isUnitTestRunning("GraphicsRenderTest__testDrawRectAAWithLine")) { bitmap->Scale(1.0 / mScaling, 1.0 / mScaling, goodScalingQuality()); } |