fixed bug in wxDisplay::GetFromPoint() when Xinerama is not used (patch 813543)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23967 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -92,7 +92,16 @@ int wxDisplayBase::GetFromPoint(const wxPoint &p)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return 0;
|
wxSize size = wxGetDisplaySize();
|
||||||
|
if (p.x >= 0 &&
|
||||||
|
p.x <= size.GetWidth() &&
|
||||||
|
p.y > 0 &&
|
||||||
|
p.y <= size.GetHeight())
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
return -1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user