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 /cocoa | |
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 'cocoa')
-rw-r--r-- | cocoa/PlatCocoa.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm index aba1fa810..acfda1e86 100644 --- a/cocoa/PlatCocoa.mm +++ b/cocoa/PlatCocoa.mm @@ -1455,7 +1455,7 @@ std::unique_ptr<IScreenLineLayout> SurfaceImpl::Layout(const IScreenLine *screen void SurfaceImpl::DrawTextNoClip(PRectangle rc, const Font *font_, XYPOSITION ybase, std::string_view text, ColourAlpha fore, ColourAlpha back) { - FillRectangle(rc, back); + FillRectangleAligned(rc, back); DrawTextTransparent(rc, font_, ybase, text, fore); } @@ -1627,7 +1627,7 @@ XYPOSITION SurfaceImpl::WidthText(const Font *font_, std::string_view text) { void SurfaceImpl::DrawTextNoClipUTF8(PRectangle rc, const Font *font_, XYPOSITION ybase, std::string_view text, ColourAlpha fore, ColourAlpha back) { - FillRectangle(rc, back); + FillRectangleAligned(rc, back); DrawTextTransparentUTF8(rc, font_, ybase, text, fore); } |