diff options
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); } |