Remove unnecessary uses of System.Drawing primitives.

This commit is contained in:
Paul Chote
2018-12-30 15:41:53 +00:00
parent 00496e2ec2
commit 0b641c20df
4 changed files with 13 additions and 20 deletions

View File

@@ -178,7 +178,7 @@ namespace OpenRA.Mods.Common.Widgets
var drawBounds = backgroundRect.InflateBy(-BorderWidth, -BorderWidth, -BorderWidth, -BorderWidth);
Game.Renderer.EnableScissor(drawBounds);
drawBounds.Offset((-ChildOrigin).ToPoint());
drawBounds.Offset(-ChildOrigin);
foreach (var child in Children)
if (child.Bounds.IntersectsWith(drawBounds))
child.DrawOuter();