Make colors appearing in CGA mode 4, but still buggy concerning the computation of the resolution (either the X-dimension is twice big or the Y-dimension is twice small), and the position of the pixels...
However the VGA registers are (almost) similar to http://www.brokenthorn.com/Resources/OSDevVid2.html and putting them equal to the settings given there don't change anything new...

svn path=/branches/ntvdm/; revision=61435
This commit is contained in:
Hermès Bélusca-Maïto 2013-12-26 21:40:20 +00:00
parent 2752c69839
commit cc98f9be4f

View file

@ -91,7 +91,7 @@ static VGA_REGISTERS VideoMode_320x200_4color =
0x63,
/* Sequencer Registers */
{0x00, 0x09, 0x00, 0x00, 0x02},
{0x00, 0x09, 0x03, 0x00, 0x02},
/* CRTC Registers */
{0x2D, 0x27, 0x28, 0x90, 0x2B, 0x80, 0xBF, 0x1F, 0x00, 0xC1, 0x00, 0x00,
@ -99,7 +99,7 @@ static VGA_REGISTERS VideoMode_320x200_4color =
0xFF},
/* GC Registers */
{0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x0F, 0x0F, 0xFF},
{0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x0F, 0x0F, 0xFF},
/* AC Registers */
{0x00, 0x13, 0x15, 0x17, 0x02, 0x04, 0x06, 0x07, 0x10, 0x11, 0x12, 0x13,