summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/mpu4plasma.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/mpu4plasma.c')
-rw-r--r--src/mame/drivers/mpu4plasma.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/mpu4plasma.c b/src/mame/drivers/mpu4plasma.c
index 25b7d482825..d908c29d5f1 100644
--- a/src/mame/drivers/mpu4plasma.c
+++ b/src/mame/drivers/mpu4plasma.c
@@ -30,6 +30,7 @@ public:
{
}
+ UINT32 screen_update_mpu4plasma(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
};
@@ -48,13 +49,12 @@ static ADDRESS_MAP_START( mpu4plasma_map, AS_PROGRAM, 16, mpu4plasma_state )
AM_RANGE(0xffff04, 0xffff05) AM_WRITE( mpu4plasma_unk_w )
ADDRESS_MAP_END
-SCREEN_UPDATE_IND16( mpu4plasma )
+UINT32 mpu4plasma_state::screen_update_mpu4plasma(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
// don't know if this really gets drawn straight from ram..
- mpu4plasma_state *state = screen.machine().driver_data<mpu4plasma_state>();
int base = 0x1600 / 2;
- UINT16* rambase = state->m_plasmaram;
+ UINT16* rambase = m_plasmaram;
UINT16* dst_bitmap;
int i,y,x,p;
@@ -94,7 +94,7 @@ MACHINE_CONFIG_DERIVED_CLASS( mpu4plasma , mod2, mpu4plasma_state )
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
MCFG_SCREEN_SIZE(64*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(0, 128-1, 0*8, 40-1)
- MCFG_SCREEN_UPDATE_STATIC(mpu4plasma)
+ MCFG_SCREEN_UPDATE_DRIVER(mpu4plasma_state, screen_update_mpu4plasma)
MCFG_PALETTE_LENGTH(0x200)
MACHINE_CONFIG_END