From 34b68597f7e069b281a7f1b98fd8752915f8edf2 Mon Sep 17 00:00:00 2001 From: Ivan Vangelista Date: Mon, 20 May 2019 18:24:40 +0200 Subject: sbowling.cpp: fixed MT07325. Added button1 for cocktail mode. Cocktail mode still not working: horizontal sprite positioning is wrong when the screen is flipped (nw) --- src/mame/drivers/sbowling.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/mame/drivers/sbowling.cpp b/src/mame/drivers/sbowling.cpp index 4867ce45458..44d6ae78789 100644 --- a/src/mame/drivers/sbowling.cpp +++ b/src/mame/drivers/sbowling.cpp @@ -9,6 +9,7 @@ driver by Jarek Burczynski Todo: - analog sound - colors + - horizontal sprite positioning when screen is flipped *********************************************************** @@ -110,8 +111,8 @@ static void plot_pixel_sbw(bitmap_ind16 *tmpbitmap, int x, int y, int col, int f { if (flip) { - y = 255-y; - x = 247-x; + y = 255 - y; + x = 255 - x; } tmpbitmap->pix16(y, x) = col; @@ -216,14 +217,11 @@ WRITE8_MEMBER(sbowling_state::system_w) */ - flip_screen_set(data&1); + flip_screen_set(BIT(data, 3)); - if ((m_system^data)&1) - { - int offs; - for (offs = 0;offs < 0x4000; offs++) + for (int offs = 0; offs < 0x4000; offs++) videoram_w(space, offs, m_videoram[offs]); - } + m_system = data; } @@ -292,7 +290,7 @@ static INPUT_PORTS_START( sbowling ) PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) - PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) + PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_START1 ) PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START2 ) -- cgit v1.2.3