mirror of
https://github.com/holub/mame
synced 2025-04-24 17:30:55 +03:00
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)
This commit is contained in:
parent
1d57f205f5
commit
34b68597f7
@ -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 )
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user