/* Update the values in the BDA */
Bda->VideoMode = ModeNumber;
Bda->VideoPage = 0;
- Bda->VideoPageSize = BIOS_PAGE_SIZE;
+ Bda->VideoPageSize = BIOS_PAGE_SIZE;
Bda->VideoPageOffset = 0;
/* Get the character height */
}
/* Initialize VGA */
- VgaInitialize(BiosConsoleOutput);
+ if (!VgaInitialize(BiosConsoleOutput))
+ {
+ CloseHandle(BiosConsoleOutput);
+ CloseHandle(BiosConsoleInput);
+ return FALSE;
+ }
/* Update the cursor position */
BiosSetCursorPosition(BiosSavedBufferInfo.dwCursorPosition.Y,
case 0x00:
{
BiosSetVideoMode(LOBYTE(Eax));
+ VgaClearMemory();
+
break;
}
};
/* Call the internal function */
- BiosScrollWindow((HIBYTE(Eax)== 0x06)
+ BiosScrollWindow((HIBYTE(Eax) == 0x06)
? SCROLL_DIRECTION_UP : SCROLL_DIRECTION_DOWN,
LOBYTE(Eax),
Rectangle,