correcting system version compare
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
64fec3ab27
commit
7741dfb12e
@ -372,7 +372,7 @@ ControlRef wxMacFindSubControl( Point location , ControlRef superControl , Contr
|
|||||||
ControlRef wxMacFindControlUnderMouse( Point location , WindowRef window , ControlPartCode *outPart )
|
ControlRef wxMacFindControlUnderMouse( Point location , WindowRef window , ControlPartCode *outPart )
|
||||||
{
|
{
|
||||||
#if TARGET_API_MAC_OSX
|
#if TARGET_API_MAC_OSX
|
||||||
if ( UMAGetSystemVersion() >= 1030 )
|
if ( UMAGetSystemVersion() >= 0x1030 )
|
||||||
return FindControlUnderMouse( location , window , outPart ) ;
|
return FindControlUnderMouse( location , window , outPart ) ;
|
||||||
#endif
|
#endif
|
||||||
ControlRef rootControl = NULL ;
|
ControlRef rootControl = NULL ;
|
||||||
@ -394,6 +394,7 @@ pascal OSStatus wxMacTopLevelMouseEventHandler( EventHandlerCallRef handler , Ev
|
|||||||
short windowPart = ::FindWindow(screenMouseLocation, &window);
|
short windowPart = ::FindWindow(screenMouseLocation, &window);
|
||||||
|
|
||||||
wxWindow* currentMouseWindow = NULL ;
|
wxWindow* currentMouseWindow = NULL ;
|
||||||
|
|
||||||
if ( window )
|
if ( window )
|
||||||
{
|
{
|
||||||
// calculate window relative coordinates
|
// calculate window relative coordinates
|
||||||
|
Loading…
Reference in New Issue
Block a user