summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/igs011.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2012-09-13 11:15:32 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2012-09-13 11:15:32 +0000
commit219e664785890f52079bae7e74543920d638796a (patch)
tree774d1ab1e7d87ae4d2c1ef335dcef24a28a7d7e8 /src/mame/drivers/igs011.c
parentaf9a5e817d3eefdda79e801056b29167ecbcdef9 (diff)
Massive change, MACHINE_START\RESET, VIDEO_START\RESET and PALETTE_INIT changed to be members of state classes (no whatsnew)
Diffstat (limited to 'src/mame/drivers/igs011.c')
-rw-r--r--src/mame/drivers/igs011.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mame/drivers/igs011.c b/src/mame/drivers/igs011.c
index f319d877688..b1091cd85df 100644
--- a/src/mame/drivers/igs011.c
+++ b/src/mame/drivers/igs011.c
@@ -195,6 +195,7 @@ public:
DECLARE_DRIVER_INIT(vbowl);
DECLARE_DRIVER_INIT(vbowlj);
DECLARE_DRIVER_INIT(ryukobou);
+ virtual void video_start();
};
@@ -230,17 +231,16 @@ WRITE16_MEMBER(igs011_state::igs011_priority_w)
}
-static VIDEO_START( igs011 )
+void igs011_state::video_start()
{
- igs011_state *state = machine.driver_data<igs011_state>();
int i;
for (i = 0; i < 8; i++)
{
- state->m_layer[i] = auto_alloc_array(machine, UINT8, 512 * 256);
+ m_layer[i] = auto_alloc_array(machine(), UINT8, 512 * 256);
}
- state->m_lhb2_pen_hi = 0;
+ m_lhb2_pen_hi = 0;
}
static SCREEN_UPDATE_IND16( igs011 )
@@ -3814,7 +3814,6 @@ static MACHINE_CONFIG_START( igs011_base, igs011_state )
MCFG_PALETTE_LENGTH(0x800)
// MCFG_GFXDECODE(igs011)
- MCFG_VIDEO_START( igs011 )
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")