Browse Source

Make this more efficient

Brandon Thetford 1 year ago
parent
commit
05d41bc21c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Terminal.Gui/Drawing/Thickness.cs

+ 1 - 1
Terminal.Gui/Drawing/Thickness.cs

@@ -273,7 +273,7 @@ public class Thickness : IEquatable<Thickness>
         int width = Math.Max (0, rect.Size.Width - Horizontal);
         int width = Math.Max (0, rect.Size.Width - Horizontal);
         int height = Math.Max (0, rect.Size.Height - Vertical);
         int height = Math.Max (0, rect.Size.Height - Vertical);
 
 
-        return new Rect (new Point (x, y), new Size (width, height));
+        return new (x, y, width, height);
     }
     }
 
 
     /// <inheritdoc/>
     /// <inheritdoc/>