src/gui/kernel/qt_cocoa_helpers_mac.mm
branchRCL_3
changeset 7 3f74d0d4af4c
parent 5 d3bac044e0f0
child 13 c0432d11811c
equal deleted inserted replaced
6:dee5afe5301f 7:3f74d0d4af4c
  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()