Fix the clipping checks in TuiFillArea.

svn path=/trunk/; revision=19202
This commit is contained in:
Filip Navara 2005-11-13 08:24:15 +00:00
parent 7e9d2d769e
commit 0cd1d327a2

View file

@ -190,19 +190,18 @@ VOID TuiFillArea(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, CHAR FillChar
ULONG i, j;
// Clip the area to the screen
// FIXME: This code seems to have problems... Uncomment and view ;-)
/*if ((Left >= UiScreenWidth) || (Top >= UiScreenHeight))
if ((Left >= UiScreenWidth) || (Top >= UiScreenHeight))
{
return;
}
if ((Left + Right) >= UiScreenWidth)
if (Right >= UiScreenWidth)
{
Right = UiScreenWidth - Left;
Right = UiScreenWidth - 1;
}
if ((Top + Bottom) >= UiScreenHeight)
if (Bottom >= UiScreenHeight)
{
Bottom = UiScreenHeight - Top;
}*/
Bottom = UiScreenHeight - 1;
}
// Loop through each line and fill it in
for (i=Top; i<=Bottom; i++)