From 953da984248196116b97f002d63ec704ffa80b4d Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Thu, 23 Oct 2003 07:03:37 +0000 Subject: [PATCH] fix 16 color graphics colors Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1371 --- src/ints/int10_modes.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/ints/int10_modes.cpp b/src/ints/int10_modes.cpp index e26e739e..1fc3d5b6 100644 --- a/src/ints/int10_modes.cpp +++ b/src/ints/int10_modes.cpp @@ -393,6 +393,11 @@ foundmode: switch (CurMode->type) { case M_EGA16: if (CurMode->mode>0xe) goto att_text16; + for (i=0;i<8;i++) { + att_data[i]=i; + att_data[i+8]=i+0x10; + } + break; case M_TANDY16: att_data[0x10]=0x01; //Color Graphics for (i=0;i<16;i++) { @@ -437,6 +442,12 @@ skipatt: switch (CurMode->type) { case M_EGA16: if (CurMode->mode>0xe) goto dac_text16; + for (i=0;i<64;i++) { + IO_Write(0x3c9,ega_palette[i][0]); + IO_Write(0x3c9,ega_palette[i][1]); + IO_Write(0x3c9,ega_palette[i][2]); + } + break; case M_CGA2: case M_CGA4: case M_TANDY16: