aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-20 18:12:55 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-20 18:12:55 +1100
commita926652af980db3abcdef3e8ecb78a763327a1ae (patch)
tree09cdcf8184842773069c697270cba15368771ecd /cocoa
parent2b8ea578dc6e59d11384d3253b7d06ce55330182 (diff)
downloadscintilla-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.mm4
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);
}