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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user