src/mess/video/amstrad.c
| r884 | r885 | |
| 324 | 324 | amstrad_GateArray_render_colours[PenIndex] = Machine->pens[hw_colour_index]; |
| 325 | 325 | if(amstrad_system_type != 0) |
| 326 | 326 | { // CPC+/GX4000 - normal palette changes through the Gate Array also makes the corresponding change in the ASIC palette |
| 327 | | val = amstrad_palette[hw_colour_index*3+2] >> 4; |
| 328 | | val += amstrad_palette[hw_colour_index*3] & 0xf0; |
| 327 | val = (amstrad_palette[hw_colour_index] & 0xf00000) >> 16; // red |
| 328 | val |= (amstrad_palette[hw_colour_index] & 0x0000f0) >> 4; // blue |
| 329 | 329 | amstrad_plus_asic_ram[0x2400+PenIndex*2] = val; |
| 330 | | val = amstrad_palette[hw_colour_index*3+1] >> 4; |
| 330 | val = (amstrad_palette[hw_colour_index] & 0x00f000) >> 12; // green |
| 331 | 331 | amstrad_plus_asic_ram[0x2401+PenIndex*2] = val; |
| 332 | 332 | } |
| 333 | 333 | } |