Remove some duplication

This commit is contained in:
Paul Chote
2010-07-16 19:02:09 +12:00
parent 4c8f85b36b
commit 84ac8d9d16
5 changed files with 50 additions and 77 deletions

View File

@@ -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());
}
}
}