[NTVDM]
authorAleksandar Andrejevic <aandrejevic@reactos.org>
Mon, 29 Feb 2016 04:14:55 +0000 (04:14 +0000)
committerAleksandar Andrejevic <aandrejevic@reactos.org>
Mon, 29 Feb 2016 04:14:55 +0000 (04:14 +0000)
VidBiosScrollWindow shouldn't corrupt the screen in non-alphanumeric modes.
CORE-10877

svn path=/trunk/; revision=70816

reactos/subsystems/mvdm/ntvdm/bios/vidbios.c

index 5030f80..cda45c7 100644 (file)
@@ -1991,6 +1991,13 @@ static BOOLEAN VidBiosScrollWindow(SCROLL_DIRECTION Direction,
 
     WORD WindowWidth, WindowHeight;
 
 
     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);
     /* 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);