diff options
Diffstat (limited to 'src/mame/drivers/hitpoker.c')
-rw-r--r-- | src/mame/drivers/hitpoker.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mame/drivers/hitpoker.c b/src/mame/drivers/hitpoker.c index d7ed6198a3e..37f43670589 100644 --- a/src/mame/drivers/hitpoker.c +++ b/src/mame/drivers/hitpoker.c @@ -80,17 +80,17 @@ public: DECLARE_WRITE8_MEMBER(hitpoker_pic_w); DECLARE_READ8_MEMBER(test_r); DECLARE_DRIVER_INIT(hitpoker); + virtual void video_start(); }; #define CRTC_CLOCK XTAL_3_579545MHz -static VIDEO_START(hitpoker) +void hitpoker_state::video_start() { - hitpoker_state *state = machine.driver_data<hitpoker_state>(); - state->m_videoram = auto_alloc_array(machine, UINT8, 0x35ff); - state->m_paletteram = auto_alloc_array(machine, UINT8, 0x1000); - state->m_colorram = auto_alloc_array(machine, UINT8, 0x2000); + m_videoram = auto_alloc_array(machine(), UINT8, 0x35ff); + m_paletteram = auto_alloc_array(machine(), UINT8, 0x1000); + m_colorram = auto_alloc_array(machine(), UINT8, 0x2000); } static SCREEN_UPDATE_IND16(hitpoker) @@ -512,7 +512,6 @@ static MACHINE_CONFIG_START( hitpoker, hitpoker_state ) MCFG_GFXDECODE(hitpoker) MCFG_PALETTE_LENGTH(0x800) - MCFG_VIDEO_START(hitpoker) MCFG_SPEAKER_STANDARD_MONO("mono") |