mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[NTVDM]
VidBiosScrollWindow shouldn't corrupt the screen in non-alphanumeric modes. CORE-10877 svn path=/trunk/; revision=70816
This commit is contained in:
parent
960b573f7b
commit
c799784abf
1 changed files with 7 additions and 0 deletions
|
@ -1991,6 +1991,13 @@ static BOOLEAN VidBiosScrollWindow(SCROLL_DIRECTION Direction,
|
|||
|
||||
WORD WindowWidth, WindowHeight;
|
||||
|
||||
/* TODO: This function doesn't work in non-alphanumeric modes yet */
|
||||
if (Bda->VideoMode > 3)
|
||||
{
|
||||
DPRINT1("VidBiosScrollWindow: not implemented for mode 0%Xh\n", Bda->VideoMode);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* Fixup the rectangle if needed */
|
||||
Rectangle.Left = min(max(Rectangle.Left , 0), Bda->ScreenColumns - 1);
|
||||
Rectangle.Right = min(max(Rectangle.Right , 0), Bda->ScreenColumns - 1);
|
||||
|
|
Loading…
Reference in a new issue