From cc98f9be4f251c3b7015879745a7ddf5bdfa425d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Thu, 26 Dec 2013 21:40:20 +0000 Subject: [PATCH] [NTVDM] 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 --- subsystems/ntvdm/bios.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subsystems/ntvdm/bios.c b/subsystems/ntvdm/bios.c index 36cebb27f52..ef3a0b11e7d 100644 --- a/subsystems/ntvdm/bios.c +++ b/subsystems/ntvdm/bios.c @@ -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, -- 2.17.1