1
0
Fork 0

There are only 248 default colors in the 256-color mode palette, and the remaining 8 colors are not altered by mode changes. Fixes font and mouse pointer colors in Voyages of Discovery.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3852
This commit is contained in:
ripsaw8080 2013-12-11 13:59:24 +00:00
parent 3074cbbc59
commit a8d8f7818a
2 changed files with 18 additions and 9 deletions

View file

@ -712,11 +712,18 @@ static void INT10_Seg40Init(void) {
static void INT10_InitVGA(void) {
/* switch to color mode and enable CPU access 480 lines */
IO_Write(0x3c2,0xc3);
/* More than 64k */
IO_Write(0x3c4,0x04);
IO_Write(0x3c5,0x02);
if (IS_EGAVGA_ARCH) {
/* switch to color mode and enable CPU access 480 lines */
IO_Write(0x3c2,0xc3);
/* More than 64k */
IO_Write(0x3c4,0x04);
IO_Write(0x3c5,0x02);
if (IS_VGA_ARCH) {
/* Initialize DAC */
IO_Write(0x3c8,0);
for (Bitu i=0;i<3*256;i++) IO_Write(0x3c9,0);
}
}
}
static void SetupTandyBios(void) {