remove hardcoded 20px offset in TimerWidget

This commit is contained in:
Chris Forbes
2011-09-24 20:26:24 +12:00
parent 73676c8f0c
commit a1fc76acc3
3 changed files with 5 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ namespace OpenRA.Widgets
var s = WidgetUtils.FormatTime(Game.LocalTick);
var font = Game.Renderer.Fonts["Title"];
var rb = RenderBounds;
var pos = new float2(rb.Left - font.Measure(s).X / 2, rb.Top - 20);
var pos = new float2(rb.Left - font.Measure(s).X / 2, rb.Top);
font.DrawTextWithContrast(s, pos, Color.White, Color.Black, 1);
}