mirror of
https://github.com/reactos/reactos.git
synced 2024-08-01 09:01:13 +00:00
Fix the clipping checks in TuiFillArea.
svn path=/trunk/; revision=19202
This commit is contained in:
parent
7e9d2d769e
commit
0cd1d327a2
|
@ -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++)
|
||||
|
|
Loading…
Reference in a new issue