Fixed DrawHorizontalShadowTransparent (vertical was already fixed).

This commit is contained in:
Tig
2024-10-11 09:57:07 -06:00
parent b4b53685b6
commit 9a9f48c2f0

View File

@@ -109,7 +109,7 @@ internal class ShadowView : View
Rectangle screen = ViewportToScreen (viewport);
// Fill the rest of the rectangle - note we skip the last since vertical will draw it
for (int i = screen.X + 1; i < screen.X + screen.Width - 1; i++)
for (int i = Math.Max(0, screen.X + 1); i < screen.X + screen.Width - 1; i++)
{
Driver.Move (i, screen.Y);