gcc 4.2 warning fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61699 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -391,6 +391,7 @@ pascal OSErr wxMacWindowDragTrackingHandler(
|
||||
break;
|
||||
|
||||
GetDragMouse( theDrag, &mouse, 0L );
|
||||
{
|
||||
int x = mouse.h ;
|
||||
int y = mouse.v ;
|
||||
toplevel->GetNonOwnedPeer()->ScreenToWindow( &x, &y );
|
||||
@@ -419,9 +420,9 @@ pascal OSErr wxMacWindowDragTrackingHandler(
|
||||
// this window is left
|
||||
if ( trackingGlobals->m_currentTarget )
|
||||
{
|
||||
#ifndef __LP64__
|
||||
#ifndef __LP64__
|
||||
HideDragHilite( theDrag );
|
||||
#endif
|
||||
#endif
|
||||
trackingGlobals->m_currentTarget->SetCurrentDragPasteboard( pasteboard );
|
||||
trackingGlobals->m_currentTarget->OnLeave();
|
||||
trackingGlobals->m_currentTarget = NULL;
|
||||
@@ -450,9 +451,9 @@ pascal OSErr wxMacWindowDragTrackingHandler(
|
||||
RgnHandle hiliteRgn = NewRgn();
|
||||
Rect r = { y, x, y + win->GetSize().y, x + win->GetSize().x };
|
||||
RectRgn( hiliteRgn, &r );
|
||||
#ifndef __LP64__
|
||||
#ifndef __LP64__
|
||||
ShowDragHilite( theDrag, hiliteRgn, true );
|
||||
#endif
|
||||
#endif
|
||||
DisposeRgn( hiliteRgn );
|
||||
}
|
||||
}
|
||||
@@ -504,6 +505,7 @@ pascal OSErr wxMacWindowDragTrackingHandler(
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case kDragTrackingLeaveWindow:
|
||||
|
Reference in New Issue
Block a user