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:
Vadim Zeitlin
2003-09-27 13:58:10 +00:00
parent 93255dade6
commit 3cb98121f2

View File

@@ -92,7 +92,16 @@ int wxDisplayBase::GetFromPoint(const wxPoint &p)
}
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
}
}