Fix StyleCop warnings in OpenRA.Game
This commit is contained in:
@@ -46,7 +46,7 @@ namespace OpenRA.Widgets
|
||||
WidgetUtils.DrawPanel("progressbar-bg", rb);
|
||||
|
||||
var barRect = wasIndeterminate ?
|
||||
new Rectangle(rb.X + 2 + (int)(0.75*offset*(rb.Width - 4)), rb.Y + 2, (rb.Width - 4) / 4, rb.Height - 4) :
|
||||
new Rectangle(rb.X + 2 + (int)(0.75 * offset * (rb.Width - 4)), rb.Y + 2, (rb.Width - 4) / 4, rb.Height - 4) :
|
||||
new Rectangle(rb.X + 2, rb.Y + 2, percentage * (rb.Width - 4) / 100, rb.Height - 4);
|
||||
|
||||
if (barRect.Width > 0)
|
||||
@@ -73,4 +73,4 @@ namespace OpenRA.Widgets
|
||||
|
||||
public override Widget Clone() { return new ProgressBarWidget(this); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user