aboutsummaryrefslogtreecommitdiff
path: root/src/osx/graphics/quartz/Painter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/osx/graphics/quartz/Painter.cpp')
-rw-r--r--src/osx/graphics/quartz/Painter.cpp11
1 files changed, 1 insertions, 10 deletions
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_);