Fix the clipping checks in TuiFillArea.
Modified:
branches/cache_manager_rewrite/reactos/boot/freeldr/freeldr/ui/tui.c
_____
Modified:
branches/cache_manager_rewrite/reactos/boot/freeldr/freeldr/ui/tui.c
--- branches/cache_manager_rewrite/reactos/boot/freeldr/freeldr/ui/tui.c
2005-11-13 07:41:32 UTC (rev 19198)
+++ branches/cache_manager_rewrite/reactos/boot/freeldr/freeldr/ui/tui.c
2005-11-13 08:19:13 UTC (rev 19199)
@@ -142,19 +142,18 @@
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++)