diff options
author | marc_culler <marc.culler@gmail.com> | 2020-11-09 16:06:51 (GMT) |
---|---|---|
committer | marc_culler <marc.culler@gmail.com> | 2020-11-09 16:06:51 (GMT) |
commit | 4621757eccd06843ee0a0b7b6d35f0e673ac6f25 (patch) | |
tree | 74f6f3164029665a5aee8bc95f2fb77b6256f1c8 /macosx/tkMacOSXFont.c | |
parent | 167c8ef54e27e04346e18429ebc4688b954bf3ee (diff) | |
download | tk-4621757eccd06843ee0a0b7b6d35f0e673ac6f25.zip tk-4621757eccd06843ee0a0b7b6d35f0e673ac6f25.tar.gz tk-4621757eccd06843ee0a0b7b6d35f0e673ac6f25.tar.bz2 |
Remove some more unneeded code.
Diffstat (limited to 'macosx/tkMacOSXFont.c')
-rw-r--r-- | macosx/tkMacOSXFont.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/macosx/tkMacOSXFont.c b/macosx/tkMacOSXFont.c index 34dc8c2..37d4eab 100644 --- a/macosx/tkMacOSXFont.c +++ b/macosx/tkMacOSXFont.c @@ -1208,10 +1208,9 @@ TkpDrawAngledCharsInContext( } context = drawingContext.context; - fg = TkMacOSXCreateCGColor(gc, gc->foreground); + TkSetMacColor(gc->foreground, &fg); attributes = [fontPtr->nsAttributes mutableCopy]; [attributes setObject:(id)fg forKey:(id)kCTForegroundColorAttributeName]; - CFRelease(fg); nsFont = [attributes objectForKey:NSFontAttributeName]; [nsFont setInContext:GET_NSCONTEXT(context, NO)]; CGContextSetTextMatrix(context, CGAffineTransformIdentity); |