From 7741dfb12e2a59e292779117429608ac12fca24f Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Thu, 20 May 2004 18:44:14 +0000 Subject: [PATCH] correcting system version compare git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/toplevel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mac/carbon/toplevel.cpp b/src/mac/carbon/toplevel.cpp index 64d7065dd5..2434341adf 100644 --- a/src/mac/carbon/toplevel.cpp +++ b/src/mac/carbon/toplevel.cpp @@ -372,7 +372,7 @@ ControlRef wxMacFindSubControl( Point location , ControlRef superControl , Contr ControlRef wxMacFindControlUnderMouse( Point location , WindowRef window , ControlPartCode *outPart ) { #if TARGET_API_MAC_OSX - if ( UMAGetSystemVersion() >= 1030 ) + if ( UMAGetSystemVersion() >= 0x1030 ) return FindControlUnderMouse( location , window , outPart ) ; #endif ControlRef rootControl = NULL ; @@ -394,6 +394,7 @@ pascal OSStatus wxMacTopLevelMouseEventHandler( EventHandlerCallRef handler , Ev short windowPart = ::FindWindow(screenMouseLocation, &window); wxWindow* currentMouseWindow = NULL ; + if ( window ) { // calculate window relative coordinates -- 2.47.2