summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/astrocorp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/astrocorp.c')
-rw-r--r--src/mame/drivers/astrocorp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/astrocorp.c b/src/mame/drivers/astrocorp.c
index d4c724cf22e..84198b42790 100644
--- a/src/mame/drivers/astrocorp.c
+++ b/src/mame/drivers/astrocorp.c
@@ -64,6 +64,7 @@ public:
DECLARE_DRIVER_INIT(showhanc);
DECLARE_DRIVER_INIT(showhand);
DECLARE_VIDEO_START(astrocorp);
+ UINT32 screen_update_astrocorp(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
};
/***************************************************************************
@@ -150,12 +151,11 @@ static void draw_sprites( running_machine &machine, bitmap_ind16 &bitmap, const
}
}
-static SCREEN_UPDATE_IND16(astrocorp)
+UINT32 astrocorp_state::screen_update_astrocorp(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
- astrocorp_state *state = screen.machine().driver_data<astrocorp_state>();
- if (state->m_screen_enable & 1)
- copybitmap(bitmap, state->m_bitmap, 0,0,0,0, cliprect);
+ if (m_screen_enable & 1)
+ copybitmap(bitmap, m_bitmap, 0,0,0,0, cliprect);
else
bitmap.fill(get_black_pen(screen.machine()), cliprect);
@@ -487,7 +487,7 @@ static MACHINE_CONFIG_START( showhand, astrocorp_state )
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
MCFG_SCREEN_SIZE(320, 240)
MCFG_SCREEN_VISIBLE_AREA(0, 320-1, 0, 240-1)
- MCFG_SCREEN_UPDATE_STATIC(astrocorp)
+ MCFG_SCREEN_UPDATE_DRIVER(astrocorp_state, screen_update_astrocorp)
MCFG_GFXDECODE(astrocorp)
MCFG_PALETTE_LENGTH(0x100)
@@ -538,7 +538,7 @@ static MACHINE_CONFIG_START( skilldrp, astrocorp_state )
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
MCFG_SCREEN_SIZE(0x200, 0x100)
MCFG_SCREEN_VISIBLE_AREA(0, 0x200-1, 0, 0xf0-1)
- MCFG_SCREEN_UPDATE_STATIC(astrocorp)
+ MCFG_SCREEN_UPDATE_DRIVER(astrocorp_state, screen_update_astrocorp)
MCFG_GFXDECODE(astrocorp)
MCFG_PALETTE_LENGTH(0x100)