mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 10:52:52 +00:00
[NTVDM]
- Enable TESTING by default until the correct way to load ntvdm is found. - Calculate the character height instead of hardcoding in the BDA. svn path=/branches/ntvdm/; revision=59678
This commit is contained in:
parent
d497b99734
commit
b62ad02740
|
@ -306,7 +306,10 @@ BOOLEAN BiosSetVideoMode(BYTE ModeNumber)
|
|||
Bda->VideoPage = 0;
|
||||
Bda->VideoPageSize = BIOS_PAGE_SIZE;
|
||||
Bda->VideoPageOffset = 0;
|
||||
Bda->CharacterHeight = 16;
|
||||
|
||||
/* Get the character height */
|
||||
VgaWritePort(VGA_CRTC_INDEX, VGA_CRTC_MAX_SCAN_LINE_REG);
|
||||
Bda->CharacterHeight = 1 + (VgaReadPort(VGA_CRTC_DATA) & 0x1F);
|
||||
|
||||
Resolution = VgaGetDisplayResolution();
|
||||
Bda->ScreenColumns = Resolution.X;
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
* Activate this line if you want to be able to test NTVDM with:
|
||||
* ntvdm.exe <program>
|
||||
*/
|
||||
// #define TESTING
|
||||
#define TESTING
|
||||
|
||||
/* PUBLIC VARIABLES ***********************************************************/
|
||||
|
||||
|
|
Loading…
Reference in a new issue