summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2021-09-07 14:22:38 +0200
committerLuboš Luňák <l.lunak@collabora.com>2021-09-07 14:25:36 +0200
commit39f88f29725a5e896bdd3dffc8957f50a19c1698 (patch)
treede4d0826b7b90cba3c026506d39415833984bae5 /vcl
parenta08130b30671c0c9865e759c19aebed76d80d186 (diff)
explain a 'not sure why' comment about cairo (1,1) sizes
This is from 9090dc1f3b27195f5defd35586ac79357992be21. Change-Id: Iae98628b58022c8bb3c50eef6889923023b67319 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121777 Tested-by: Luboš Luňák <l.lunak@collabora.com> Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/headless/svpgdi.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx
index 5126abb19385..53d0de812475 100644
--- a/vcl/headless/svpgdi.cxx
+++ b/vcl/headless/svpgdi.cxx
@@ -2583,7 +2583,7 @@ void SvpSalGraphics::releaseCairoContext(cairo_t* cr, bool bXorModeAllowed, cons
sal_Int32 nUnscaledExtentsTop = nExtentsTop * m_fScale;
sal_Int32 nUnscaledExtentsBottom = nExtentsBottom * m_fScale;
- // not sure why this happens
+ // Handle headless size forced to (1,1) by SvpSalFrame::GetSurfaceFrameSize().
int target_surface_width = cairo_image_surface_get_width(target_surface);
if (nUnscaledExtentsLeft > target_surface_width)
nUnscaledExtentsLeft = target_surface_width;