fix 16 color graphics colors
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1371
This commit is contained in:
parent
94a38c265e
commit
953da98424
1 changed files with 11 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue