Don't forget to flush

This commit is contained in:
alzeih
2010-05-05 22:20:10 +12:00
parent 06f530b562
commit 38a1cb89b5

View File

@@ -55,6 +55,7 @@ namespace OpenRA.Widgets
var pos = DrawPosition();
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());
Game.chrome.lineRenderer.Flush();
base.Draw(world);
}
}