summaryrefslogtreecommitdiffstats
path: root/macosx/HBToolbarBadgedItem.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBToolbarBadgedItem.m')
-rw-r--r--macosx/HBToolbarBadgedItem.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/HBToolbarBadgedItem.m b/macosx/HBToolbarBadgedItem.m
index 35fdf6808..dfce12f5b 100644
--- a/macosx/HBToolbarBadgedItem.m
+++ b/macosx/HBToolbarBadgedItem.m
@@ -139,7 +139,7 @@
[NSGraphicsContext saveGraphicsState];
[NSGraphicsContext setCurrentContext:ctx];
- CGContextRef context = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort];
+ CGContextRef context = [[NSGraphicsContext currentContext] CGContext];
CGContextSaveGState(context);
NSRect imageRect = NSMakeRect(0, 0, size.width, size.height);