reverting part of Kevin O's patch, due to incompatibility problems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
92dda0f7a3
commit
89b1446463
@ -1467,11 +1467,7 @@ bool wxWindowMac::MacSetupCursor( const wxPoint& pt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool wxWindowMac::MacDispatchMouseEvent(wxMouseEvent& event)
|
bool wxWindowMac::MacDispatchMouseEvent(wxMouseEvent& event)
|
||||||
{
|
{
|
||||||
//In case a third-party component changed the port...
|
|
||||||
wxMacPortStateHelper help( (GrafPtr) GetWindowPort( (WindowRef) MacGetRootWindow()) ) ;
|
|
||||||
wxMacWindowClipper clip (this);
|
|
||||||
|
|
||||||
if ((event.m_x < m_x) || (event.m_y < m_y) ||
|
if ((event.m_x < m_x) || (event.m_y < m_y) ||
|
||||||
(event.m_x > (m_x + m_width)) || (event.m_y > (m_y + m_height)))
|
(event.m_x > (m_x + m_width)) || (event.m_y > (m_y + m_height)))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -1467,11 +1467,7 @@ bool wxWindowMac::MacSetupCursor( const wxPoint& pt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool wxWindowMac::MacDispatchMouseEvent(wxMouseEvent& event)
|
bool wxWindowMac::MacDispatchMouseEvent(wxMouseEvent& event)
|
||||||
{
|
{
|
||||||
//In case a third-party component changed the port...
|
|
||||||
wxMacPortStateHelper help( (GrafPtr) GetWindowPort( (WindowRef) MacGetRootWindow()) ) ;
|
|
||||||
wxMacWindowClipper clip (this);
|
|
||||||
|
|
||||||
if ((event.m_x < m_x) || (event.m_y < m_y) ||
|
if ((event.m_x < m_x) || (event.m_y < m_y) ||
|
||||||
(event.m_x > (m_x + m_width)) || (event.m_y > (m_y + m_height)))
|
(event.m_x > (m_x + m_width)) || (event.m_y > (m_y + m_height)))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user