OSDN Git Service

Replaced CGContextShowGlyphsWithAdvances (deprecated as of 10.9) with CGContextShowGl... vmacos2.2.1-7a
authorEric Branlund <ebranlund@fastmail.com>
Fri, 29 Nov 2019 00:29:57 +0000 (16:29 -0800)
committerEric Branlund <ebranlund@fastmail.com>
Fri, 29 Nov 2019 00:29:57 +0000 (16:29 -0800)
src/main-cocoa.m

index c675622..f4a2163 100644 (file)
@@ -1019,7 +1019,7 @@ static int compare_advances(const void *ap, const void *bp)
 
     textMatrix = CGAffineTransformScale( textMatrix, 1.0, -1.0 );
     CGContextSetTextMatrix(ctx, textMatrix);
-    CGContextShowGlyphsWithAdvances(ctx, &glyph, &CGSizeZero, 1);
+    CGContextShowGlyphsAtPositions(ctx, &glyph, &CGPointZero, 1);
     
     /* Restore the text matrix if we messed with the compression ratio */
     if (compressionRatio != 1.)