diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-09-14 16:44:03 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-09-14 22:19:18 +0200 |
commit | ce4e3d6f39cb4db138ff2445b27d7af7ad01ff33 (patch) | |
tree | 425f3f0c9ec71f0425949270858b7236930d78bf /vcl/headless | |
parent | 939724fe6abd16015dbef6c476f7f57a2dc466d8 (diff) |
Resolves: tdf#144583 reuse lok hidpi icon scheme for gtk
Change-Id: I91dc9f7123b878e49a1ad57e5f40b6741ab04487
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139945
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/headless')
-rw-r--r-- | vcl/headless/svpgdi.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx index c97048dada12..322dab644f2a 100644 --- a/vcl/headless/svpgdi.cxx +++ b/vcl/headless/svpgdi.cxx @@ -51,6 +51,15 @@ void SvpSalGraphics::GetResolution( sal_Int32& rDPIX, sal_Int32& rDPIY ) rDPIX = rDPIY = 96; } +bool SvpSalGraphics::ShouldDownscaleIconsAtSurface(double* pScaleOut) const +{ + if (comphelper::LibreOfficeKit::isActive()) + return SalGraphics::ShouldDownscaleIconsAtSurface(pScaleOut); + if (pScaleOut) + *pScaleOut = m_aCairoCommon.m_fScale; + return true; +} + #if ENABLE_CAIRO_CANVAS bool SvpSalGraphics::SupportsCairo() const { |