added correct coordinate handling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
f6d5397840
commit
7b3a00878c
@ -33,8 +33,13 @@ wxLayoutWindow::OnMouse(wxMouseEvent& event)
|
||||
if(m_EventId == 0) // nothing to do
|
||||
return;
|
||||
|
||||
m_FindPos.x = event.GetX();
|
||||
m_FindPos.y = event.GetY();
|
||||
// this is unintuitive
|
||||
wxClientDC dc(this);
|
||||
PrepareDC( dc );
|
||||
|
||||
m_FindPos.x = dc.DeviceToLogicalX( event.GetX() );
|
||||
m_FindPos.y = dc.DeviceToLogicalY( event.GetY() );
|
||||
|
||||
m_FoundObject = NULL;
|
||||
|
||||
#ifdef WXLAYOUT_DEBUG
|
||||
|
Loading…
Reference in New Issue
Block a user