From d92a38e36872a8ca4f44483f73a8a0d12dbf2803 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Thu, 5 Dec 2019 11:05:39 +0100 Subject: drawPixel() should still get 'true' for bXorModeAllowed. That part of 7b267be4b2c87b2c3987d4d751307977a7d3ad41 was not necessary. Change-Id: Ie085f635d4adb6f574f3eca37976f9aded505524 Reviewed-on: https://gerrit.libreoffice.org/84535 Tested-by: Jenkins CollaboraOffice Reviewed-by: Jan Holesovsky --- vcl/headless/svpgdi.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx index 86ac6254c5bf..73d610d59ebf 100644 --- a/vcl/headless/svpgdi.cxx +++ b/vcl/headless/svpgdi.cxx @@ -714,7 +714,7 @@ void SvpSalGraphics::drawPixel( long nX, long nY ) void SvpSalGraphics::drawPixel( long nX, long nY, Color aColor ) { - cairo_t* cr = getCairoContext(false); + cairo_t* cr = getCairoContext(true); clipRegion(cr); cairo_rectangle(cr, nX, nY, 1, 1); @@ -722,7 +722,7 @@ void SvpSalGraphics::drawPixel( long nX, long nY, Color aColor ) cairo_fill(cr); basegfx::B2DRange extents = getClippedFillDamage(cr); - releaseCairoContext(cr, false, extents); + releaseCairoContext(cr, true, extents); } void SvpSalGraphics::drawRect( long nX, long nY, long nWidth, long nHeight ) -- cgit v1.2.3