build fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -468,7 +468,7 @@ DragShape::DragShape(const wxBitmap& bitmap)
|
|||||||
bool DragShape::HitTest(const wxPoint& pt) const
|
bool DragShape::HitTest(const wxPoint& pt) const
|
||||||
{
|
{
|
||||||
wxRect rect(GetRect());
|
wxRect rect(GetRect());
|
||||||
return rect.Inside(pt.x, pt.y);
|
return rect.Contains(pt.x, pt.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DragShape::Draw(wxDC& dc, int op)
|
bool DragShape::Draw(wxDC& dc, int op)
|
||||||
|
@@ -200,7 +200,7 @@ void SimpleTransientPopup::OnMouse(wxMouseEvent &event)
|
|||||||
rect.SetWidth(1000000);
|
rect.SetWidth(1000000);
|
||||||
wxColour colour(*wxLIGHT_GREY);
|
wxColour colour(*wxLIGHT_GREY);
|
||||||
|
|
||||||
if (rect.Inside(event.GetPosition()))
|
if (rect.Contains(event.GetPosition()))
|
||||||
{
|
{
|
||||||
colour = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT);
|
colour = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT);
|
||||||
wxLogMessage( wxT("0x%lx SimpleTransientPopup::OnMouse pos(%d, %d)"), long(event.GetEventObject()), event.GetX(), event.GetY());
|
wxLogMessage( wxT("0x%lx SimpleTransientPopup::OnMouse pos(%d, %d)"), long(event.GetEventObject()), event.GetX(), event.GetY());
|
||||||
|
Reference in New Issue
Block a user