From cd7d6d7621fbf8d490b632590d3d7959920099de Mon Sep 17 00:00:00 2001 From: Angelo Salese Date: Fri, 19 Mar 2010 10:02:41 +0000 Subject: [PATCH] Fixed for good trasparency issues in Three Dealers Casino House [Angelo Salese] --- src/mame/drivers/pastelg.c | 9 +++------ src/mame/video/pastelg.c | 7 +++++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/mame/drivers/pastelg.c b/src/mame/drivers/pastelg.c index d5f06a2c150..5ec3cc31abd 100644 --- a/src/mame/drivers/pastelg.c +++ b/src/mame/drivers/pastelg.c @@ -225,9 +225,7 @@ INPUT_PORTS_END // stops the game hanging.. static CUSTOM_INPUT( nb1413m3_hackbusyflag_r ) { - static int i = 0; - i ^= 1; - return i; + return mame_rand(field->port->machine) & 3; } static INPUT_PORTS_START( threeds ) @@ -382,8 +380,7 @@ static INPUT_PORTS_START( threeds ) PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_START("SYSTEM") - PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_hackbusyflag_r, NULL) // DRAW BUSY - PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED ) // + PORT_BIT( 0x03, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(nb1413m3_hackbusyflag_r, NULL) // DRAW BUSY PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE3 ) // MEMORY RESET PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER PORT_SERVICE( 0x10, IP_ACTIVE_LOW ) // TEST @@ -548,4 +545,4 @@ ROM_END GAME( 1985, pastelg, 0, pastelg, pastelg, pastelg, ROT0, "Nichibutsu", "Pastel Gal (Japan 851224)", 0 ) -GAME( 1985, 3ds, 0, threeds, threeds, pastelg, ROT0, "Nichibutsu", "Three Ds - Three Dealers Casino House", GAME_IMPERFECT_GRAPHICS ) +GAME( 1985, 3ds, 0, threeds, threeds, pastelg, ROT0, "Nichibutsu", "Three Ds - Three Dealers Casino House", 0 ) diff --git a/src/mame/video/pastelg.c b/src/mame/video/pastelg.c index 3450ef1ad0d..ad14f7244dd 100644 --- a/src/mame/video/pastelg.c +++ b/src/mame/video/pastelg.c @@ -270,8 +270,11 @@ static void pastelg_gfxdraw(running_machine *machine) } else { - color = ((pastelg_palbank * 0x10) + pastelg_clut[color]); - pastelg_videoram[(dy * width) + dx] = color; + if(pastelg_clut[color] != 0) + { + color = ((pastelg_palbank * 0x10) + pastelg_clut[color]); + pastelg_videoram[(dy * width) + dx] = color; + } } nb1413m3_busyctr++;