aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/ScintillaView.mm
diff options
context:
space:
mode:
Diffstat (limited to 'cocoa/ScintillaView.mm')
-rw-r--r--cocoa/ScintillaView.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm
index ad074b496..6e113b523 100644
--- a/cocoa/ScintillaView.mm
+++ b/cocoa/ScintillaView.mm
@@ -373,7 +373,7 @@ static NSCursor *cursorFromEnum(Window::Cursor cursor) {
* Gets called by the runtime when the view needs repainting.
*/
- (void) drawRect: (NSRect) rect {
- CGContextRef context = (CGContextRef) [NSGraphicsContext currentContext].graphicsPort;
+ CGContextRef context = CGContextCurrent();
if (!mOwner.backend->Draw(rect, context)) {
dispatch_async(dispatch_get_main_queue(), ^ {