diff options
author | culler <culler> | 2020-08-25 11:36:19 (GMT) |
---|---|---|
committer | culler <culler> | 2020-08-25 11:36:19 (GMT) |
commit | 797d843a17df7fab1e27d6b10629d323b2987919 (patch) | |
tree | 399538284c47e6b52560b4c44fbe259926b9a0bc /macosx/tkMacOSXBitmap.c | |
parent | 08b64027f4480a5aaa634ba89da1704539893bc5 (diff) | |
download | tk-797d843a17df7fab1e27d6b10629d323b2987919.zip tk-797d843a17df7fab1e27d6b10629d323b2987919.tar.gz tk-797d843a17df7fab1e27d6b10629d323b2987919.tar.bz2 |
Fix one more compilation issue with old macOS targets.
Diffstat (limited to 'macosx/tkMacOSXBitmap.c')
-rw-r--r-- | macosx/tkMacOSXBitmap.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/macosx/tkMacOSXBitmap.c b/macosx/tkMacOSXBitmap.c index 213d925..402178a 100644 --- a/macosx/tkMacOSXBitmap.c +++ b/macosx/tkMacOSXBitmap.c @@ -142,9 +142,7 @@ PixmapFromImage( .tx = 0, .ty = size.height}; CGContextConcatCTM(dc.context, t); [NSGraphicsContext saveGraphicsState]; - [NSGraphicsContext setCurrentContext:[NSGraphicsContext - graphicsContextWithGraphicsPort:dc.context - flipped:NO]]; + [NSGraphicsContext setCurrentContext:TkMacOSXNSContext(dc.context)]; [image drawAtPoint:NSZeroPoint fromRect:NSZeroRect operation:NSCompositeCopy fraction:1.0]; [NSGraphicsContext restoreGraphicsState]; |