gcc 4.2 fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_9_0_BRANCH@61739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2009-08-23 08:35:42 +00:00
parent 7a03aa0188
commit eb84a012bd

View File

@@ -390,14 +390,14 @@ pascal OSErr wxMacWindowDragTrackingHandler(
if (toplevel == NULL)
break;
GetDragMouse( theDrag, &mouse, 0L );
int x = mouse.h ;
int y = mouse.v ;
toplevel->GetNonOwnedPeer()->ScreenToWindow( &x, &y );
localMouse.h = x;
localMouse.v = y;
{
GetDragMouse( theDrag, &mouse, 0L );
int x = mouse.h ;
int y = mouse.v ;
toplevel->GetNonOwnedPeer()->ScreenToWindow( &x, &y );
localMouse.h = x;
localMouse.v = y;
wxWindow *win = NULL;
ControlPartCode controlPart;
ControlRef control = FindControlUnderMouse( localMouse, theWindow, &controlPart );