From a926652af980db3abcdef3e8ecb78a763327a1ae Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 20 Mar 2021 18:12:55 +1100 Subject: Replace FillRectangle with FillRectangleAligned as FillRectangle will stop aligning to pixel boundaries. Use Surface::SetMode as simpler and its predecessors will be removed. --- gtk/PlatGTK.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gtk') diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index 60b47c88c..66a1666f5 100755 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -976,14 +976,14 @@ void SurfaceImpl::DrawTextBase(PRectangle rc, const Font *font_, XYPOSITION ybas void SurfaceImpl::DrawTextNoClip(PRectangle rc, const Font *font_, XYPOSITION ybase, std::string_view text, ColourAlpha fore, ColourAlpha back) { - FillRectangle(rc, back); + FillRectangleAligned(rc, back); DrawTextBase(rc, font_, ybase, text, fore); } // On GTK+, exactly same as DrawTextNoClip void SurfaceImpl::DrawTextClipped(PRectangle rc, const Font *font_, XYPOSITION ybase, std::string_view text, ColourAlpha fore, ColourAlpha back) { - FillRectangle(rc, back); + FillRectangleAligned(rc, back); DrawTextBase(rc, font_, ybase, text, fore); } @@ -1182,14 +1182,14 @@ void SurfaceImpl::DrawTextBaseUTF8(PRectangle rc, const Font *font_, XYPOSITION void SurfaceImpl::DrawTextNoClipUTF8(PRectangle rc, const Font *font_, XYPOSITION ybase, std::string_view text, ColourAlpha fore, ColourAlpha back) { - FillRectangle(rc, back); + FillRectangleAligned(rc, back); DrawTextBaseUTF8(rc, font_, ybase, text, fore); } // On GTK+, exactly same as DrawTextNoClip void SurfaceImpl::DrawTextClippedUTF8(PRectangle rc, const Font *font_, XYPOSITION ybase, std::string_view text, ColourAlpha fore, ColourAlpha back) { - FillRectangle(rc, back); + FillRectangleAligned(rc, back); DrawTextBaseUTF8(rc, font_, ybase, text, fore); } -- cgit v1.2.3