diff options
| author | Neil <nyamatongwe@gmail.com> | 2021-03-20 18:12:55 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2021-03-20 18:12:55 +1100 |
| commit | a926652af980db3abcdef3e8ecb78a763327a1ae (patch) | |
| tree | 09cdcf8184842773069c697270cba15368771ecd /gtk | |
| parent | 2b8ea578dc6e59d11384d3253b7d06ce55330182 (diff) | |
| download | scintilla-mirror-a926652af980db3abcdef3e8ecb78a763327a1ae.tar.gz | |
Replace FillRectangle with FillRectangleAligned as FillRectangle will stop
aligning to pixel boundaries.
Use Surface::SetMode as simpler and its predecessors will be removed.
Diffstat (limited to 'gtk')
| -rwxr-xr-x | gtk/PlatGTK.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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); } |
