Fix wrong UMAGetSystemVersion() return value comparison in wxScreenDC.

The return value of gestaltSystemVersion() represents the version as
"four hexadecimal digits in the low-order word of the return value", to quote
Apple documentation, not as a floating point number.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2013-10-17 12:34:06 +00:00
parent b16fa26914
commit 4d0893114a

View File

@@ -91,7 +91,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 MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6
if ( UMAGetSystemVersion() >= 10.6) if ( UMAGetSystemVersion() >= 0x1060)
{ {
image = CGDisplayCreateImage(kCGDirectMainDisplay); image = CGDisplayCreateImage(kCGDirectMainDisplay);
} }