equal
deleted
inserted
replaced
1160 #ifndef QT_MAC_USE_COCOA |
1160 #ifndef QT_MAC_USE_COCOA |
1161 CGContextRef context; |
1161 CGContextRef context; |
1162 CGrafPtr port = GetWindowPort(qt_mac_window_for(widget)); |
1162 CGrafPtr port = GetWindowPort(qt_mac_window_for(widget)); |
1163 QDBeginCGContext(port, &context); |
1163 QDBeginCGContext(port, &context); |
1164 #else |
1164 #else |
1165 CGContextRef context = (CGContextRef)[[NSGraphicsContext graphicsContextWithWindow:qt_mac_window_for(widget)] graphicsPort]; |
1165 CGContextRef context = reinterpret_cast<CGContextRef>([[qt_mac_window_for(widget) graphicsContext] graphicsPort]); |
1166 #endif |
1166 #endif |
1167 return context; |
1167 return context; |
1168 } |
1168 } |
1169 |
1169 |
1170 CGFloat qt_mac_get_scalefactor() |
1170 CGFloat qt_mac_get_scalefactor() |