summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/salgdi.hxx4
-rw-r--r--vcl/source/gdi/FileDefinitionWidgetDraw.cxx11
2 files changed, 9 insertions, 6 deletions
diff --git a/vcl/inc/salgdi.hxx b/vcl/inc/salgdi.hxx
index af2173b80daf..e0cd3e53a2ac 100644
--- a/vcl/inc/salgdi.hxx
+++ b/vcl/inc/salgdi.hxx
@@ -57,6 +57,7 @@ namespace basegfx {
namespace vcl
{
class AbstractTrueTypeFont;
+class FileDefinitionWidgetDraw;
typedef struct TTGlobalFontInfo_ TTGlobalFontInfo;
}
@@ -446,6 +447,9 @@ public:
#endif // ENABLE_CAIRO_CANVAS
protected:
+
+ friend class vcl::FileDefinitionWidgetDraw;
+
virtual bool setClipRegion( const vcl::Region& ) = 0;
// draw --> LineColor and FillColor and RasterOp and ClipRegion
diff --git a/vcl/source/gdi/FileDefinitionWidgetDraw.cxx b/vcl/source/gdi/FileDefinitionWidgetDraw.cxx
index e82980d83ea8..16a8fe52efbe 100644
--- a/vcl/source/gdi/FileDefinitionWidgetDraw.cxx
+++ b/vcl/source/gdi/FileDefinitionWidgetDraw.cxx
@@ -211,7 +211,7 @@ void FileDefinitionWidgetDraw::drawPolyPolygon(SalGraphics& rGraphics,
const basegfx::B2DPolyPolygon& i_rPolyPolygon,
double i_fTransparency)
{
- rGraphics.DrawPolyPolygon(rObjectToDevice, i_rPolyPolygon, i_fTransparency, nullptr);
+ rGraphics.drawPolyPolygon(rObjectToDevice, i_rPolyPolygon, i_fTransparency);
}
void FileDefinitionWidgetDraw::drawPolyLine(
@@ -220,22 +220,21 @@ void FileDefinitionWidgetDraw::drawPolyLine(
const std::vector<double>* i_pStroke, basegfx::B2DLineJoin i_eLineJoin,
css::drawing::LineCap i_eLineCap, double i_fMiterMinimumAngle, bool bPixelSnapHairline)
{
- rGraphics.DrawPolyLine(rObjectToDevice, i_rPolygon, i_fTransparency, i_fLineWidth, i_pStroke,
- i_eLineJoin, i_eLineCap, i_fMiterMinimumAngle, bPixelSnapHairline,
- nullptr);
+ rGraphics.drawPolyLine(rObjectToDevice, i_rPolygon, i_fTransparency, i_fLineWidth, i_pStroke,
+ i_eLineJoin, i_eLineCap, i_fMiterMinimumAngle, bPixelSnapHairline);
}
void FileDefinitionWidgetDraw::drawBitmap(SalGraphics& rGraphics, const SalTwoRect& rPosAry,
const SalBitmap& rSalBitmap)
{
- rGraphics.DrawBitmap(rPosAry, rSalBitmap, nullptr);
+ rGraphics.drawBitmap(rPosAry, rSalBitmap);
}
void FileDefinitionWidgetDraw::drawBitmap(SalGraphics& rGraphics, const SalTwoRect& rPosAry,
const SalBitmap& rSalBitmap,
const SalBitmap& rTransparentBitmap)
{
- rGraphics.DrawBitmap(rPosAry, rSalBitmap, rTransparentBitmap, nullptr);
+ rGraphics.drawBitmap(rPosAry, rSalBitmap, rTransparentBitmap);
}
namespace