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;