From 69a7f17f19fbb7985a49b039b37403d9735d8f70 Mon Sep 17 00:00:00 2001 From: BDisp Date: Sun, 12 Nov 2023 01:12:33 +0000 Subject: [PATCH] Use new DrawFrame method. --- Terminal.Gui/Views/TabView.cs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/Terminal.Gui/Views/TabView.cs b/Terminal.Gui/Views/TabView.cs index ecf622690..9d0a6dd23 100644 --- a/Terminal.Gui/Views/TabView.cs +++ b/Terminal.Gui/Views/TabView.cs @@ -188,18 +188,8 @@ namespace Terminal.Gui { int spaceAtBottom = Math.Max (0, GetTabHeight (false) - 1); int startAtY = Math.Max (0, GetTabHeight (true) - 1); - var vts = ViewToScreen (new Rect (0, startAtY, Bounds.Width, - Math.Max (Bounds.Height - spaceAtBottom - startAtY, 0))); - LineCanvas.AddLine (new Point (vts.X, vts.Y), vts.Width, - Orientation.Horizontal, LineStyle.Single); - LineCanvas.AddLine (new Point (vts.Right - 1, vts.Y), vts.Height, - Orientation.Vertical, LineStyle.Single); - LineCanvas.AddLine (new Point (vts.X, vts.Bottom - 1), vts.Width, - Orientation.Horizontal, LineStyle.Single); - LineCanvas.AddLine (new Point (vts.X, vts.Y), vts.Height, - Orientation.Vertical, LineStyle.Single); - - OnRenderLineCanvas (); + DrawFrame (new Rect (0, startAtY, Bounds.Width, + Math.Max (Bounds.Height - spaceAtBottom - startAtY, 0)), LineStyle.Single); } if (Tabs.Any ()) {