summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXImage.c
diff options
context:
space:
mode:
authorculler <culler>2020-08-25 15:31:32 (GMT)
committerculler <culler>2020-08-25 15:31:32 (GMT)
commite03da6230e1fc5c1652a6fc89b56ec25e59901ad (patch)
treec06d1178e43b8cab63b27690b3b6b921c20400a8 /macosx/tkMacOSXImage.c
parent0c3b57e9345e13a06175d7b4157bd529717ffd92 (diff)
parenta33411438ab9001bdd38f2d693229ec03b565c79 (diff)
downloadtk-e03da6230e1fc5c1652a6fc89b56ec25e59901ad.zip
tk-e03da6230e1fc5c1652a6fc89b56ec25e59901ad.tar.gz
tk-e03da6230e1fc5c1652a6fc89b56ec25e59901ad.tar.bz2
Merge trunk
Diffstat (limited to 'macosx/tkMacOSXImage.c')
-rw-r--r--macosx/tkMacOSXImage.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/macosx/tkMacOSXImage.c b/macosx/tkMacOSXImage.c
index b4621d6..5f390a6 100644
--- a/macosx/tkMacOSXImage.c
+++ b/macosx/tkMacOSXImage.c
@@ -1127,8 +1127,7 @@ TkNSImageDisplay(
if (TkMacOSXSetupDrawingContext(drawable, NULL, &dc)) {
if (dc.context) {
NSGraphicsContext *savedContext = NSGraphicsContext.currentContext;
- NSGraphicsContext.currentContext = [NSGraphicsContext
- graphicsContextWithCGContext:dc.context flipped: YES];
+ NSGraphicsContext.currentContext = GET_NSCONTEXT(dc.context, YES);
[image drawInRect:dstRect
fromRect:srcRect
operation:NSCompositeSourceOver