diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-03-01 06:03:36 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-03-01 06:03:36 +0100 |
| commit | a4e0b9b3b751e85f97419d5baac55d52435e6e9c (patch) | |
| tree | a62077b2a4ee26c0d0f41c8f828bae6e1fd27601 /src/Interface.cs | |
| parent | f2b0b19294346a11dc32c7ef91e3e92712285791 (diff) | |
remove unecessary GOs array copy and reverse
Diffstat (limited to 'src/Interface.cs')
| -rw-r--r-- | src/Interface.cs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/Interface.cs b/src/Interface.cs index 4007cce0..aacca09a 100644 --- a/src/Interface.cs +++ b/src/Interface.cs @@ -279,10 +279,6 @@ namespace Crow updateTime.Restart (); #endif - GraphicObject[] invGOList = new GraphicObject[GraphicObjects.Count]; - GraphicObjects.CopyTo (invGOList, 0); - invGOList = invGOList.Reverse ().ToArray (); - #if MEASURE_TIME layoutTime.Start (); #endif @@ -326,7 +322,8 @@ namespace Crow //Link.draw (ctx); clipping.clearAndClip(ctx); - foreach (GraphicObject p in invGOList) { + for (int i = GraphicObjects.Count -1; i >= 0 ; i--){ + GraphicObject p = GraphicObjects[i]; if (!p.Visible) continue; if (!clipping.intersect (p.Slot)) |