[NTVDM]
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 8 Dec 2013 14:22:27 +0000 (14:22 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 8 Dec 2013 14:22:27 +0000 (14:22 +0000)
commitb20613401f923ef2c6dced03db1c14e2833512a3
tree8a1a222623fbd493abeaffb3359d470621de76d9
parent1c9756782c21f5dd14435efe1b792b96c7a6e8c8
[NTVDM]
Rewrite the VGA emulation.

Nah, it's a joke!
- Store VGA registers setup in VGA_REGISTERS structure.
- Improve BiosSetVideoMode and introduce a VgaSetRegisters function for setting VGA regs.
- Initialize Bda->CrtBasePort: it is used to determine the address of some I/O ports which depend on whether we are in color or monochrome mode.
- Add UnregisterIoPort in io.c (and fix some DPRINTs) (needed for VGA).
- When setting the misc. VGA register, check whether we're going to monochrome emulation, and reset some port addresses in that case.

svn path=/branches/ntvdm/; revision=61246
subsystems/ntvdm/bios.c
subsystems/ntvdm/io.c
subsystems/ntvdm/io.h
subsystems/ntvdm/vga.c
subsystems/ntvdm/vga.h