From e597d8ce3ba96eab2836f5d34b787049d9373a75 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 27 Sep 2017 14:24:07 -0400 Subject: [PATCH] More TODOs. --- darwin/drawtext.m | 1 + 1 file changed, 1 insertion(+) 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