From c799784abfa78e580135e97f6bd51f082e6d21b9 Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Mon, 29 Feb 2016 04:14:55 +0000 Subject: [PATCH] [NTVDM] VidBiosScrollWindow shouldn't corrupt the screen in non-alphanumeric modes. CORE-10877 svn path=/trunk/; revision=70816 --- reactos/subsystems/mvdm/ntvdm/bios/vidbios.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/reactos/subsystems/mvdm/ntvdm/bios/vidbios.c b/reactos/subsystems/mvdm/ntvdm/bios/vidbios.c index 5030f80f83c..cda45c79f3e 100644 --- a/reactos/subsystems/mvdm/ntvdm/bios/vidbios.c +++ b/reactos/subsystems/mvdm/ntvdm/bios/vidbios.c @@ -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); -- 2.17.1