From 6ca286d41a1ca8e6d948d131fdaaf8b8199c905e Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 25 Mar 2021 10:07:29 +1100 Subject: Use FillStroke for parameters to Polygon, RectangleDraw, RoundedRectangle, and Ellipse. --- src/Platform.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/Platform.h b/src/Platform.h index 1b9f2a6d1..6848e4d4f 100644 --- a/src/Platform.h +++ b/src/Platform.h @@ -189,11 +189,14 @@ public: virtual void MoveTo(int x_, int y_)=0; virtual void LineTo(int x_, int y_)=0; virtual void Polygon(Point *pts, size_t npts, ColourDesired fore, ColourDesired back)=0; + virtual void Polygon(const Point *pts, size_t npts, FillStroke fillStroke)=0; virtual void RectangleDraw(PRectangle rc, ColourDesired fore, ColourDesired back)=0; + virtual void RectangleDraw(PRectangle rc, FillStroke fillStroke)=0; virtual void FillRectangle(PRectangle rc, ColourDesired back)=0; virtual void FillRectangle(PRectangle rc, Fill fill)=0; virtual void FillRectangle(PRectangle rc, Surface &surfacePattern)=0; virtual void RoundedRectangle(PRectangle rc, ColourDesired fore, ColourDesired back)=0; + virtual void RoundedRectangle(PRectangle rc, FillStroke fillStroke)=0; virtual void AlphaRectangle(PRectangle rc, int cornerSize, ColourDesired fill, int alphaFill, ColourDesired outline, int alphaOutline, int flags)=0; virtual void AlphaRectangle(PRectangle rc, XYPOSITION cornerSize, FillStroke fillStroke)=0; @@ -201,6 +204,7 @@ public: virtual void GradientRectangle(PRectangle rc, const std::vector &stops, GradientOptions options)=0; virtual void DrawRGBAImage(PRectangle rc, int width, int height, const unsigned char *pixelsImage) = 0; virtual void Ellipse(PRectangle rc, ColourDesired fore, ColourDesired back)=0; + virtual void Ellipse(PRectangle rc, FillStroke fillStroke)=0; virtual void Copy(PRectangle rc, Point from, Surface &surfaceSource)=0; virtual std::unique_ptr Layout(const IScreenLine *screenLine) = 0; -- cgit v1.2.3