diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-10-27 10:14:42 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-10-30 21:20:33 +0100 |
commit | 620492ca19d1e5c34312b49f3d4fef24a928412a (patch) | |
tree | 1b7434d1dd130afe93f6c4338e347d577b1cab88 /vcl/inc/headless | |
parent | 28c0bd6379c0c40bcaf3ab994ef5aee711fe58bb (diff) |
Constify some VCL interface functions
This drops the bPaintEnd optimization for vertical and horizontal
lines on Windows, where Polyline and LineTo exclude painting the
last pixel of the line. Instead we just always set the last pixel.
It also merges the various "SetPixel" call sites into a common
drawPixelImpl function.
Change-Id: I01cc3c01c908ba74f7978fa90eaaf8d88f923ae3
Reviewed-on: https://gerrit.libreoffice.org/43939
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl/inc/headless')
-rw-r--r-- | vcl/inc/headless/svpgdi.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/inc/headless/svpgdi.hxx b/vcl/inc/headless/svpgdi.hxx index 16b45fff3c8a..6fe1b07a2af9 100644 --- a/vcl/inc/headless/svpgdi.hxx +++ b/vcl/inc/headless/svpgdi.hxx @@ -141,7 +141,7 @@ public: virtual void SetROPFillColor( SalROPColor nROPColor ) override; virtual void SetTextColor( SalColor nSalColor ) override; - virtual void SetFont( FontSelectPattern*, int nFallbackLevel ) override; + virtual void SetFont( const FontSelectPattern*, int nFallbackLevel ) override; virtual void GetFontMetric( ImplFontMetricDataRef&, int nFallbackLevel ) override; virtual const FontCharMapRef GetFontCharMap() const override; virtual bool GetFontCapabilities(vcl::FontCapabilities &rFontCapabilities) const override; @@ -178,7 +178,7 @@ public: basegfx::B2DLineJoin, css::drawing::LineCap, double fMiterMinimumAngle) override; - virtual void drawPolyLine( sal_uInt32 nPoints, SalPoint* pPtAry ) override; + virtual void drawPolyLine( sal_uInt32 nPoints, const SalPoint* pPtAry ) override; virtual void drawPolygon( sal_uInt32 nPoints, const SalPoint* pPtAry ) override; virtual void drawPolyPolygon( sal_uInt32 nPoly, const sal_uInt32* pPoints, |