diff --git a/samples/dragimag/dragimag.cpp b/samples/dragimag/dragimag.cpp index 8b5be97a0f..187c696f8a 100644 --- a/samples/dragimag/dragimag.cpp +++ b/samples/dragimag/dragimag.cpp @@ -468,7 +468,7 @@ DragShape::DragShape(const wxBitmap& bitmap) bool DragShape::HitTest(const wxPoint& pt) const { wxRect rect(GetRect()); - return rect.Inside(pt.x, pt.y); + return rect.Contains(pt.x, pt.y); } bool DragShape::Draw(wxDC& dc, int op) diff --git a/samples/popup/popup.cpp b/samples/popup/popup.cpp index 0306e91ccf..8f5c2188b1 100644 --- a/samples/popup/popup.cpp +++ b/samples/popup/popup.cpp @@ -200,7 +200,7 @@ void SimpleTransientPopup::OnMouse(wxMouseEvent &event) rect.SetWidth(1000000); wxColour colour(*wxLIGHT_GREY); - if (rect.Inside(event.GetPosition())) + if (rect.Contains(event.GetPosition())) { colour = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT); wxLogMessage( wxT("0x%lx SimpleTransientPopup::OnMouse pos(%d, %d)"), long(event.GetEventObject()), event.GetX(), event.GetY());