support mac on little endian systems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -396,9 +396,7 @@ wxDragResult wxDropSource::DoDragDrop(int WXUNUSED(flags))
|
||||
DisposeDrag(theDrag);
|
||||
gTrackingGlobals.m_currentSource = NULL ;
|
||||
|
||||
KeyMap keymap;
|
||||
GetKeys(keymap);
|
||||
bool optionDown = keymap[1] & 4;
|
||||
bool optionDown = GetCurrentKeyModifiers() & optionKey ;
|
||||
wxDragResult dndresult = optionDown ? wxDragCopy : wxDragMove;
|
||||
return dndresult;
|
||||
}
|
||||
@@ -452,9 +450,7 @@ pascal OSErr wxMacWindowDragTrackingHandler(DragTrackingMessage theMessage, Wind
|
||||
GetDragAttributes(theDrag, &attributes);
|
||||
wxTopLevelWindowMac* toplevel = wxFindWinFromMacWindow( theWindow ) ;
|
||||
|
||||
KeyMap keymap;
|
||||
GetKeys(keymap);
|
||||
bool optionDown = keymap[1] & 4;
|
||||
bool optionDown = GetCurrentKeyModifiers() & optionKey ;
|
||||
wxDragResult result = optionDown ? wxDragCopy : wxDragMove;
|
||||
|
||||
switch(theMessage)
|
||||
@@ -619,9 +615,7 @@ pascal OSErr wxMacWindowDragReceiveHandler(WindowPtr theWindow,
|
||||
trackingGlobals->m_currentTargetWindow->MacRootWindowToWindow( &localx , &localy ) ;
|
||||
if ( trackingGlobals->m_currentTarget->OnDrop( localx , localy ) )
|
||||
{
|
||||
KeyMap keymap;
|
||||
GetKeys(keymap);
|
||||
bool optionDown = keymap[1] & 4;
|
||||
bool optionDown = GetCurrentKeyModifiers() & optionKey ;
|
||||
wxDragResult result = optionDown ? wxDragCopy : wxDragMove;
|
||||
trackingGlobals->m_currentTarget->OnData( localx , localy , result ) ;
|
||||
}
|
||||
|
Reference in New Issue
Block a user