Remove some duplication
This commit is contained in:
@@ -45,11 +45,8 @@ namespace OpenRA.Widgets
|
||||
}
|
||||
|
||||
public override void DrawInner(World world)
|
||||
{
|
||||
var pos = RenderOrigin;
|
||||
var paletteRect = new RectangleF(pos.X + Game.viewport.Location.X,
|
||||
pos.Y + Game.viewport.Location.Y, Bounds.Width, Bounds.Height);
|
||||
Game.chrome.lineRenderer.FillRect(paletteRect, GetColor());
|
||||
{
|
||||
WidgetUtils.FillRectWithColor(RenderBounds, GetColor());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user