Skip to content

Commit 9a9f48c

Browse files
committed
Fixed DrawHorizontalShadowTransparent (vertical was already fixed).
1 parent b4b5368 commit 9a9f48c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Terminal.Gui/View/Adornment/ShadowView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ private void DrawHorizontalShadowTransparent (Rectangle viewport)
109109
Rectangle screen = ViewportToScreen (viewport);
110110

111111
// Fill the rest of the rectangle - note we skip the last since vertical will draw it
112-
for (int i = screen.X + 1; i < screen.X + screen.Width - 1; i++)
112+
for (int i = Math.Max(0, screen.X + 1); i < screen.X + screen.Width - 1; i++)
113113
{
114114
Driver.Move (i, screen.Y);
115115

0 commit comments

Comments
 (0)