From 2dcaef718618475e86b116f2ec7deef6bec16b3c Mon Sep 17 00:00:00 2001 From: Bryan McPhail Date: Tue, 15 Jan 2008 22:11:33 +0000 Subject: [PATCH] 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" --- src/mame/video/bionicc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mame/video/bionicc.c b/src/mame/video/bionicc.c index fc759b953ef..6833fbf3949 100644 --- a/src/mame/video/bionicc.c +++ b/src/mame/video/bionicc.c @@ -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 )