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. --- qt/ScintillaEditBase/PlatQt.h | 1 + 1 file changed, 1 insertion(+) (limited to 'qt/ScintillaEditBase/PlatQt.h') diff --git a/qt/ScintillaEditBase/PlatQt.h b/qt/ScintillaEditBase/PlatQt.h index ac4bb9a69..b579ee3f3 100644 --- a/qt/ScintillaEditBase/PlatQt.h +++ b/qt/ScintillaEditBase/PlatQt.h @@ -115,6 +115,7 @@ public: void RectangleFrame(PRectangle rc, Stroke stroke) override; void FillRectangle(PRectangle rc, ColourDesired back) override; void FillRectangle(PRectangle rc, Fill fill) override; + void FillRectangleAligned(PRectangle rc, Fill fill) override; void FillRectangle(PRectangle rc, Surface &surfacePattern) override; void RoundedRectangle(PRectangle rc, ColourDesired fore, ColourDesired back) override; -- cgit v1.2.3