- 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:
Aleksandar Andrejevic 2013-08-09 13:14:56 +00:00
parent d497b99734
commit b62ad02740
2 changed files with 5 additions and 2 deletions

View file

@ -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;

View file

@ -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 ***********************************************************/