removing code for pre 10.6 systems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -90,16 +90,7 @@ wxBitmap wxScreenDCImpl::DoGetAsBitmap(const wxRect *subrect) const
|
|||||||
|
|
||||||
CGImageRef image = NULL;
|
CGImageRef image = NULL;
|
||||||
|
|
||||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6
|
|
||||||
if ( UMAGetSystemVersion() >= 0x1060)
|
|
||||||
{
|
|
||||||
image = CGDisplayCreateImage(kCGDirectMainDisplay);
|
image = CGDisplayCreateImage(kCGDirectMainDisplay);
|
||||||
}
|
|
||||||
else
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
image = grabViaOpenGL(kCGNullDirectDisplay, srcRect);
|
|
||||||
}
|
|
||||||
|
|
||||||
wxASSERT_MSG(image, wxT("wxScreenDC::GetAsBitmap - unable to get screenshot."));
|
wxASSERT_MSG(image, wxT("wxScreenDC::GetAsBitmap - unable to get screenshot."));
|
||||||
|
|
||||||
|
@@ -1757,11 +1757,7 @@ bool wxMacCoreGraphicsContext::SetInterpolationQuality(wxInterpolationQuality in
|
|||||||
quality = kCGInterpolationLow;
|
quality = kCGInterpolationLow;
|
||||||
break;
|
break;
|
||||||
case wxINTERPOLATION_GOOD:
|
case wxINTERPOLATION_GOOD:
|
||||||
#if wxOSX_USE_COCOA_OR_CARBON
|
|
||||||
quality = UMAGetSystemVersion() < 0x1060 ? kCGInterpolationHigh : (CGInterpolationQuality) 4 /*kCGInterpolationMedium only on 10.6*/;
|
|
||||||
#else
|
|
||||||
quality = kCGInterpolationMedium;
|
quality = kCGInterpolationMedium;
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
case wxINTERPOLATION_BEST:
|
case wxINTERPOLATION_BEST:
|
||||||
quality = kCGInterpolationHigh;
|
quality = kCGInterpolationHigh;
|
||||||
|
Reference in New Issue
Block a user