summaryrefslogtreecommitdiff
path: root/vcl/inc/headless
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2019-05-02 18:24:10 +0200
committerCaolán McNamara <caolanm@redhat.com>2019-05-03 17:09:08 +0200
commit8d902026dc45af7b239fc6f68096a3dd31279dc9 (patch)
tree5108b1ae91de0c590b9f611c1e1c4113812baa16 /vcl/inc/headless
parentf6e663e4bb725102ebcff03cd0fea5ded9d8bc10 (diff)
tdf#120585: use applyColor and make it transparency-aware
An overloaded drawPolyPolygon for zero transparency case used to exist and it used applyColor to fill cairo path. It was removed by commit 7034311dce663c895577267110baadbec312d491 and the new transparency-aware drawPolyPolygon missed cairo_set_operator call that is present in applyColor. This works OK most of the time but breaks sometimes when no transparency (~no antialiasing) is involved. To fix that add transparency argument to applyColor and use it where applicable Change-Id: Ib1b077e38e7f5d30778434d45be67284407a7d16 Reviewed-on: https://gerrit.libreoffice.org/71700 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/inc/headless')
-rw-r--r--vcl/inc/headless/svpgdi.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/inc/headless/svpgdi.hxx b/vcl/inc/headless/svpgdi.hxx
index 51b53f794cc9..73d80da6deb8 100644
--- a/vcl/inc/headless/svpgdi.hxx
+++ b/vcl/inc/headless/svpgdi.hxx
@@ -126,7 +126,7 @@ public:
private:
void invert(const basegfx::B2DPolygon &rPoly, SalInvert nFlags);
- void applyColor(cairo_t *cr, Color rColor);
+ void applyColor(cairo_t *cr, Color rColor, double fTransparency = 0.0);
protected:
vcl::Region m_aClipRegion;