diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-15 08:11:09 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-15 13:09:09 +0200 |
commit | ca014eca8a07ae97125afa6e47d56c44269d7a73 (patch) | |
tree | a4ee4b6bf659625f021a4e621e7575dcc6d37222 /vcl/unx/generic | |
parent | 6eba86ae9d6c8550e069ef933889610aee309381 (diff) |
loplugin:constantparam
Change-Id: I895ceffa468d84d22e4a81b7a6b06eaed0bd839d
Reviewed-on: https://gerrit.libreoffice.org/61776
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx/generic')
-rw-r--r-- | vcl/unx/generic/gdi/gdiimpl.cxx | 11 | ||||
-rw-r--r-- | vcl/unx/generic/gdi/gdiimpl.hxx | 3 |
2 files changed, 4 insertions, 10 deletions
diff --git a/vcl/unx/generic/gdi/gdiimpl.cxx b/vcl/unx/generic/gdi/gdiimpl.cxx index 7ed38cc6eab5..7e2b412b55de 100644 --- a/vcl/unx/generic/gdi/gdiimpl.cxx +++ b/vcl/unx/generic/gdi/gdiimpl.cxx @@ -1573,8 +1573,7 @@ bool X11SalGraphicsImpl::drawFilledTrapezoids( const basegfx::B2DTrapezoid* pB2D bool X11SalGraphicsImpl::drawFilledTriangles( const basegfx::B2DHomMatrix& rObjectToDevice, const basegfx::triangulator::B2DTriangleVector& rTriangles, - double fTransparency, - bool bPixelOffset) + double fTransparency) { if(rTriangles.empty()) return true; @@ -1589,10 +1588,7 @@ bool X11SalGraphicsImpl::drawFilledTriangles( // prepare transformation for ObjectToDevice coordinate system basegfx::B2DHomMatrix aObjectToDevice(rObjectToDevice); - if(bPixelOffset) - { - aObjectToDevice = basegfx::utils::createTranslateB2DHomMatrix(0.5, 0.5) * aObjectToDevice; - } + aObjectToDevice = basegfx::utils::createTranslateB2DHomMatrix(0.5, 0.5) * aObjectToDevice; // convert the Triangles into XRender-Triangles std::vector<XTriangle> aTriVector(rTriangles.size()); @@ -1847,8 +1843,7 @@ bool X11SalGraphicsImpl::drawPolyLine( drawFilledTriangles( rObjectToDevice, pSystemDependentData_Triangulation->getTriangles(), - fTransparency, - true)); + fTransparency)); // restore the original brush GC mnBrushColor = aKeepBrushColor; diff --git a/vcl/unx/generic/gdi/gdiimpl.hxx b/vcl/unx/generic/gdi/gdiimpl.hxx index db13696c4ffc..0ea0e2958a03 100644 --- a/vcl/unx/generic/gdi/gdiimpl.hxx +++ b/vcl/unx/generic/gdi/gdiimpl.hxx @@ -97,8 +97,7 @@ private: bool drawFilledTriangles( const basegfx::B2DHomMatrix& rObjectToDevice, const basegfx::triangulator::B2DTriangleVector& rTriangles, - double fTransparency, - bool bPixelOffset); + double fTransparency); long GetGraphicsHeight() const; |