src/gui/kernel/qt_cocoa_helpers_mac.mm
branchRCL_3
changeset 8 3f74d0d4af4c
parent 5 d3bac044e0f0
child 14 c0432d11811c
--- a/src/gui/kernel/qt_cocoa_helpers_mac.mm	Mon Mar 15 12:43:09 2010 +0200
+++ b/src/gui/kernel/qt_cocoa_helpers_mac.mm	Thu Apr 08 14:19:33 2010 +0300
@@ -1162,7 +1162,7 @@
     CGrafPtr port = GetWindowPort(qt_mac_window_for(widget));
     QDBeginCGContext(port, &context);
 #else
-    CGContextRef context = (CGContextRef)[[NSGraphicsContext graphicsContextWithWindow:qt_mac_window_for(widget)] graphicsPort];
+    CGContextRef context = reinterpret_cast<CGContextRef>([[qt_mac_window_for(widget) graphicsContext] graphicsPort]);
 #endif
     return context;
 }