From 2f0011955fe7d3ac0b80247abc88ee0461104eb6 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 25 Mar 2021 10:57:35 +1100 Subject: Add FillRectangleAligned to align rectangle to pixel grid on x-axis before filling it to avoid partially drawn pixels on left and right edges. --- src/Platform.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Platform.h') diff --git a/src/Platform.h b/src/Platform.h index 3b9443cc9..568c571cc 100644 --- a/src/Platform.h +++ b/src/Platform.h @@ -205,6 +205,7 @@ public: virtual void RectangleFrame(PRectangle rc, Stroke stroke)=0; virtual void FillRectangle(PRectangle rc, ColourDesired back)=0; virtual void FillRectangle(PRectangle rc, Fill fill)=0; + virtual void FillRectangleAligned(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; -- cgit v1.2.3