diff --git a/darwin/drawtext.m b/darwin/drawtext.m index fd5a5bbb..43c8b4e9 100644 --- a/darwin/drawtext.m +++ b/darwin/drawtext.m @@ -190,6 +190,7 @@ void uiDrawText(uiDrawContext *c, uiDrawTextLayout *tl, double x, double y) // TODO how is this affected by a non-identity CTM? CGContextTranslateCTM(c->c, 0, c->height); CGContextScaleCTM(c->c, 1.0, -1.0); + // TODO save the text matrix CGContextSetTextMatrix(c->c, CGAffineTransformIdentity); // wait, that's not enough; we need to offset y values to account for our new flipping