Clean up some uses of rect.Contains(int2).

This commit is contained in:
Paul Chote
2011-07-14 21:47:09 +12:00
parent 8390644fbe
commit 05acdc9b98
4 changed files with 6 additions and 6 deletions

View File

@@ -286,7 +286,7 @@ namespace OpenRA.Widgets
public bool HandleMouseInputOuter(MouseInput mi)
{
// Are we able to handle this event?
if (!(Focused || (IsVisible() && GetEventBounds().Contains(mi.Location.X, mi.Location.Y))))
if (!(Focused || (IsVisible() && GetEventBounds().Contains(mi.Location))))
return false;
var oldMouseOver = MouseOverWidget;