Fix for topsecrt0109gre2 - "topsecrt: At the end of level 2 the background gets darker and darker until it becomes black in mame. On the pcb it stops when it's dark blue"

This commit is contained in:
Bryan McPhail 2008-01-15 22:11:33 +00:00
parent 5cce8356e8
commit 2dcaef7186

View File

@ -131,8 +131,11 @@ WRITE16_HANDLER( bionicc_txvideoram_w )
WRITE16_HANDLER( bionicc_paletteram_w )
{
/* The bottom bits are 'intensity' here, but level 2 of Top Secret shows that even
when intensity is zero the colour is not reduced to pure black, (the sky should stay
at dark blue rather than absolute black) */
data = COMBINE_DATA(&paletteram16[offset]);
paletteram16_RRRRGGGGBBBBIIII_word_w(offset,(data & 0xfff0) | ((data & 0x0007) << 1),0);
paletteram16_RRRRGGGGBBBBIIII_word_w(offset,(data & 0xfff0) | ((data & 0x0007) << 1) | 1, 0);
}
WRITE16_HANDLER( bionicc_scroll_w )