From 239fff20f48c97560647667dae84a53c41c9bd1a Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 17 Jul 2010 11:57:59 +1200 Subject: [PATCH] Fix a couple of nits --- OpenRA.Game/Widgets/ColorBlockWidget.cs | 3 ++- OpenRA.Game/Widgets/Widget.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/OpenRA.Game/Widgets/ColorBlockWidget.cs b/OpenRA.Game/Widgets/ColorBlockWidget.cs index 84f23e5c5c..eeb9fe7dea 100644 --- a/OpenRA.Game/Widgets/ColorBlockWidget.cs +++ b/OpenRA.Game/Widgets/ColorBlockWidget.cs @@ -46,7 +46,8 @@ namespace OpenRA.Widgets public override void DrawInner(World world) { - WidgetUtils.FillRectWithColor(RenderBounds, GetColor()); + WidgetUtils.FillRectWithColor(RenderBounds, GetColor()); + Game.chrome.lineRenderer.Flush(); } } } diff --git a/OpenRA.Game/Widgets/Widget.cs b/OpenRA.Game/Widgets/Widget.cs index 2853cecde2..2897d0a1d3 100644 --- a/OpenRA.Game/Widgets/Widget.cs +++ b/OpenRA.Game/Widgets/Widget.cs @@ -192,7 +192,7 @@ namespace OpenRA.Widgets return false; // Send the event to the deepest children first and bubble up if unhandled - foreach (var child in Children) + foreach (var child in Children.OfType().Reverse()) if (child.HandleMouseInputOuter(mi)) return true;