Remove uses of state-mutating Rectangle.Offset and Intersect.

This commit is contained in:
Paul Chote
2018-12-30 16:24:11 +00:00
parent 0b641c20df
commit 015316e909
3 changed files with 10 additions and 5 deletions

View File

@@ -214,7 +214,7 @@ namespace OpenRA
{
// Must remain inside the current scissor rect
if (scissorState.Any())
rect.Intersect(scissorState.Peek());
rect = Rectangle.Intersect(rect, scissorState.Peek());
Flush();
Context.EnableScissor(rect.Left, rect.Top, rect.Width, rect.Height);