summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2019-10-24 11:12:29 +0200
committerLuboš Luňák <l.lunak@collabora.com>2019-11-27 09:55:11 +0100
commitf4ec92dd754db697633ad556d62a680385bdf86b (patch)
treebe18ccc2b7b090ba749baa3b29ba04e8c2a0c4e3
parent0d9b86d48e98aeb573fe28886edc59689d332a9d (diff)
transform to device coords in Skia drawPolyPolygon()
Otherwise the logo in the about dialog is rendered outside the graphics device size. Change-Id: I610653293fccedd5d8c17f51afcdab55ada2d1d4
-rw-r--r--vcl/skia/gdiimpl.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/skia/gdiimpl.cxx b/vcl/skia/gdiimpl.cxx
index 4e973c92282f..5d6acd5150f1 100644
--- a/vcl/skia/gdiimpl.cxx
+++ b/vcl/skia/gdiimpl.cxx
@@ -406,8 +406,6 @@ bool SkiaSalGraphicsImpl::drawPolyPolygon(const basegfx::B2DHomMatrix& rObjectTo
const basegfx::B2DPolyPolygon& rPolyPolygon,
double fTransparency)
{
- (void)rObjectToDevice;
-
const bool bHasFill(mFillColor != SALCOLOR_NONE);
const bool bHasLine(mLineColor != SALCOLOR_NONE);
@@ -418,7 +416,9 @@ bool SkiaSalGraphicsImpl::drawPolyPolygon(const basegfx::B2DHomMatrix& rObjectTo
preDraw();
SkPath aPath;
- lclPolyPolygonToPath(rPolyPolygon, aPath);
+ basegfx::B2DPolyPolygon aPolyPolygon(rPolyPolygon);
+ aPolyPolygon.transform(rObjectToDevice);
+ lclPolyPolygonToPath(aPolyPolygon, aPath);
SkPaint aPaint;
if (mFillColor != SALCOLOR_NONE)