summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXBitmap.c
diff options
context:
space:
mode:
authorculler <culler>2020-08-25 14:23:00 (GMT)
committerculler <culler>2020-08-25 14:23:00 (GMT)
commit8de1dd53e5559e54b3456769fd305f2ee0dd27a9 (patch)
tree8d3ed917d3164b0f90badfded88f56a7bf82929e /macosx/tkMacOSXBitmap.c
parent797d843a17df7fab1e27d6b10629d323b2987919 (diff)
downloadtk-8de1dd53e5559e54b3456769fd305f2ee0dd27a9.zip
tk-8de1dd53e5559e54b3456769fd305f2ee0dd27a9.tar.gz
tk-8de1dd53e5559e54b3456769fd305f2ee0dd27a9.tar.bz2
Rename the NSGraphicsContext macro and add a flipped parameter. Fix accent colors on old macs.
Diffstat (limited to 'macosx/tkMacOSXBitmap.c')
-rw-r--r--macosx/tkMacOSXBitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/tkMacOSXBitmap.c b/macosx/tkMacOSXBitmap.c
index 402178a..29bb163 100644
--- a/macosx/tkMacOSXBitmap.c
+++ b/macosx/tkMacOSXBitmap.c
@@ -142,7 +142,7 @@ PixmapFromImage(
.tx = 0, .ty = size.height};
CGContextConcatCTM(dc.context, t);
[NSGraphicsContext saveGraphicsState];
- [NSGraphicsContext setCurrentContext:TkMacOSXNSContext(dc.context)];
+ [NSGraphicsContext setCurrentContext:GET_NSCONTEXT(dc.context, NO)];
[image drawAtPoint:NSZeroPoint fromRect:NSZeroRect
operation:NSCompositeCopy fraction:1.0];
[NSGraphicsContext restoreGraphicsState];