vcl/headless/svpgdi.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 39f88f29725a5e896bdd3dffc8957f50a19c1698 Author: Luboš Luňák <l.lu...@collabora.com> AuthorDate: Tue Sep 7 14:22:38 2021 +0200 Commit: Luboš Luňák <l.lu...@collabora.com> CommitDate: Tue Sep 7 14:25:36 2021 +0200 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.lu...@collabora.com> Reviewed-by: Luboš Luňák <l.lu...@collabora.com> 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;