From 1dca2841da6f024f613d6dc16de456d5035f8fce Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 31 Oct 2021 22:53:11 +0800 Subject: ... --- src/osx/graphics/quartz/Painter.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/osx/graphics/quartz/Painter.cpp') diff --git a/src/osx/graphics/quartz/Painter.cpp b/src/osx/graphics/quartz/Painter.cpp index 5657e048..798e1256 100644 --- a/src/osx/graphics/quartz/Painter.cpp +++ b/src/osx/graphics/quartz/Painter.cpp @@ -158,16 +158,7 @@ void QuartzCGContextPainter::DrawText(const Point& offset, color = colors::black; } - auto bounds = tl->GetTextBounds(); - - bounds.width += bounds.left; - bounds.height += bounds.top; - bounds.left = bounds.top = 0; - - Matrix transform = - Matrix::Translation(-bounds.width / 2, -bounds.height / 2) * - Matrix::Scale(1, -1) * - Matrix::Translation(bounds.width / 2, bounds.height / 2); + Matrix transform = tl->GetTransform(); CGContextSaveGState(cg_context_); -- cgit v1.2.3