From 4d0893114a57a832546dc07d842bc3397efe0405 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 17 Oct 2013 12:34:06 +0000 Subject: [PATCH] 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 --- src/osx/carbon/dcscreen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osx/carbon/dcscreen.cpp b/src/osx/carbon/dcscreen.cpp index 81761d364d..e738a13e58 100644 --- a/src/osx/carbon/dcscreen.cpp +++ b/src/osx/carbon/dcscreen.cpp @@ -91,7 +91,7 @@ wxBitmap wxScreenDCImpl::DoGetAsBitmap(const wxRect *subrect) const CGImageRef image = NULL; #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6 - if ( UMAGetSystemVersion() >= 10.6) + if ( UMAGetSystemVersion() >= 0x1060) { image = CGDisplayCreateImage(kCGDirectMainDisplay); }