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:
@@ -33,8 +33,13 @@ wxLayoutWindow::OnMouse(wxMouseEvent& event)
|
|||||||
if(m_EventId == 0) // nothing to do
|
if(m_EventId == 0) // nothing to do
|
||||||
return;
|
return;
|
||||||
|
|
||||||
m_FindPos.x = event.GetX();
|
// this is unintuitive
|
||||||
m_FindPos.y = event.GetY();
|
wxClientDC dc(this);
|
||||||
|
PrepareDC( dc );
|
||||||
|
|
||||||
|
m_FindPos.x = dc.DeviceToLogicalX( event.GetX() );
|
||||||
|
m_FindPos.y = dc.DeviceToLogicalY( event.GetY() );
|
||||||
|
|
||||||
m_FoundObject = NULL;
|
m_FoundObject = NULL;
|
||||||
|
|
||||||
#ifdef WXLAYOUT_DEBUG
|
#ifdef WXLAYOUT_DEBUG
|
||||||
|
Reference in New Issue
Block a user