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. --- cocoa/PlatCocoa.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cocoa') 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 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); } -- cgit v1.2.3