]> git.saurik.com Git - wxWidgets.git/commitdiff
correcting system version compare
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 20 May 2004 18:44:14 +0000 (18:44 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 20 May 2004 18:44:14 +0000 (18:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/toplevel.cpp

index 64d7065dd5bdb6bb565cfbb591c009423d90799a..2434341adf3fe317ab40f54a98e9e9b5b749039e 100644 (file)
@@ -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