diff --git a/OpenRA.Game/Widgets/SpecialPowerBinWidget.cs b/OpenRA.Game/Widgets/SpecialPowerBinWidget.cs index 666f535468..d7cfa5c0e8 100644 --- a/OpenRA.Game/Widgets/SpecialPowerBinWidget.cs +++ b/OpenRA.Game/Widgets/SpecialPowerBinWidget.cs @@ -93,7 +93,9 @@ namespace OpenRA.Widgets WidgetUtils.DrawRGBA(WidgetUtils.GetChromeImage(world, "specialbin-top"),new float2(Bounds.X,Bounds.Y)); for (var i = 1; i < numPowers; i++) WidgetUtils.DrawRGBA(WidgetUtils.GetChromeImage(world,"specialbin-middle"), new float2(Bounds.X, Bounds.Y + i * 51)); - WidgetUtils.DrawRGBA(WidgetUtils.GetChromeImage(world,"specialbin-bottom"), new float2(Bounds.X, Bounds.Y + numPowers * 51)); + WidgetUtils.DrawRGBA(WidgetUtils.GetChromeImage(world,"specialbin-bottom"), new float2(Bounds.X, Bounds.Y + numPowers * 51)); + + Game.chrome.renderer.RgbaSpriteRenderer.Flush(); // Hack Hack Hack Bounds.Width = 69; diff --git a/OpenRA.Game/Widgets/WidgetUtils.cs b/OpenRA.Game/Widgets/WidgetUtils.cs index 6d15672db5..1a680e1ac7 100644 --- a/OpenRA.Game/Widgets/WidgetUtils.cs +++ b/OpenRA.Game/Widgets/WidgetUtils.cs @@ -40,7 +40,7 @@ namespace OpenRA.Widgets public static void DrawSHP(Sprite s, float2 pos) { - Game.chrome.renderer.RgbaSpriteRenderer.DrawSprite(s,pos,"chrome"); + Game.chrome.renderer.WorldSpriteRenderer.DrawSprite(s,pos,"chrome"); } public static void DrawPanel(string collection, Rectangle Bounds, Action a)