mdacols -> mda_attr_to_color_table; cgacols -> cga_attr_to_color_table
This commit is contained in:
@@ -1512,24 +1512,24 @@ ega_init(ega_t *ega, int monitor_type, int is_mono)
|
||||
ega->pallook = pallook16;
|
||||
|
||||
for (uint16_t c = 0; c < 256; c++) {
|
||||
ega->mdacols[c][0][0] = ega->mdacols[c][1][0] = ega->mdacols[c][1][1] = 16;
|
||||
ega->mda_attr_to_color_table[c][0][0] = ega->mda_attr_to_color_table[c][1][0] = ega->mda_attr_to_color_table[c][1][1] = 16;
|
||||
if (c & 8)
|
||||
ega->mdacols[c][0][1] = 15 + 16;
|
||||
ega->mda_attr_to_color_table[c][0][1] = 15 + 16;
|
||||
else
|
||||
ega->mdacols[c][0][1] = 7 + 16;
|
||||
ega->mda_attr_to_color_table[c][0][1] = 7 + 16;
|
||||
}
|
||||
ega->mdacols[0x70][0][1] = 16;
|
||||
ega->mdacols[0x70][0][0] = ega->mdacols[0x70][1][0] = ega->mdacols[0x70][1][1] = 16 + 15;
|
||||
ega->mdacols[0xF0][0][1] = 16;
|
||||
ega->mdacols[0xF0][0][0] = ega->mdacols[0xF0][1][0] = ega->mdacols[0xF0][1][1] = 16 + 15;
|
||||
ega->mdacols[0x78][0][1] = 16 + 7;
|
||||
ega->mdacols[0x78][0][0] = ega->mdacols[0x78][1][0] = ega->mdacols[0x78][1][1] = 16 + 15;
|
||||
ega->mdacols[0xF8][0][1] = 16 + 7;
|
||||
ega->mdacols[0xF8][0][0] = ega->mdacols[0xF8][1][0] = ega->mdacols[0xF8][1][1] = 16 + 15;
|
||||
ega->mdacols[0x00][0][1] = ega->mdacols[0x00][1][1] = 16;
|
||||
ega->mdacols[0x08][0][1] = ega->mdacols[0x08][1][1] = 16;
|
||||
ega->mdacols[0x80][0][1] = ega->mdacols[0x80][1][1] = 16;
|
||||
ega->mdacols[0x88][0][1] = ega->mdacols[0x88][1][1] = 16;
|
||||
ega->mda_attr_to_color_table[0x70][0][1] = 16;
|
||||
ega->mda_attr_to_color_table[0x70][0][0] = ega->mda_attr_to_color_table[0x70][1][0] = ega->mda_attr_to_color_table[0x70][1][1] = 16 + 15;
|
||||
ega->mda_attr_to_color_table[0xF0][0][1] = 16;
|
||||
ega->mda_attr_to_color_table[0xF0][0][0] = ega->mda_attr_to_color_table[0xF0][1][0] = ega->mda_attr_to_color_table[0xF0][1][1] = 16 + 15;
|
||||
ega->mda_attr_to_color_table[0x78][0][1] = 16 + 7;
|
||||
ega->mda_attr_to_color_table[0x78][0][0] = ega->mda_attr_to_color_table[0x78][1][0] = ega->mda_attr_to_color_table[0x78][1][1] = 16 + 15;
|
||||
ega->mda_attr_to_color_table[0xF8][0][1] = 16 + 7;
|
||||
ega->mda_attr_to_color_table[0xF8][0][0] = ega->mda_attr_to_color_table[0xF8][1][0] = ega->mda_attr_to_color_table[0xF8][1][1] = 16 + 15;
|
||||
ega->mda_attr_to_color_table[0x00][0][1] = ega->mda_attr_to_color_table[0x00][1][1] = 16;
|
||||
ega->mda_attr_to_color_table[0x08][0][1] = ega->mda_attr_to_color_table[0x08][1][1] = 16;
|
||||
ega->mda_attr_to_color_table[0x80][0][1] = ega->mda_attr_to_color_table[0x80][1][1] = 16;
|
||||
ega->mda_attr_to_color_table[0x88][0][1] = ega->mda_attr_to_color_table[0x88][1][1] = 16;
|
||||
|
||||
egaswitches = monitor_type & 0xf;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user