Fix a couple of nits

This commit is contained in:
Paul Chote
2010-07-17 11:57:59 +12:00
parent 5b333f4bba
commit 239fff20f4
2 changed files with 3 additions and 2 deletions

View File

@@ -46,7 +46,8 @@ namespace OpenRA.Widgets
public override void DrawInner(World world) public override void DrawInner(World world)
{ {
WidgetUtils.FillRectWithColor(RenderBounds, GetColor()); WidgetUtils.FillRectWithColor(RenderBounds, GetColor());
Game.chrome.lineRenderer.Flush();
} }
} }
} }

View File

@@ -192,7 +192,7 @@ namespace OpenRA.Widgets
return false; return false;
// Send the event to the deepest children first and bubble up if unhandled // Send the event to the deepest children first and bubble up if unhandled
foreach (var child in Children) foreach (var child in Children.OfType<Widget>().Reverse())
if (child.HandleMouseInputOuter(mi)) if (child.HandleMouseInputOuter(mi))
return true; return true;