diff options
Diffstat (limited to 'src/mame/drivers/rmhaihai.c')
-rw-r--r-- | src/mame/drivers/rmhaihai.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/rmhaihai.c b/src/mame/drivers/rmhaihai.c index 88f560f0304..f6350fa50ec 100644 --- a/src/mame/drivers/rmhaihai.c +++ b/src/mame/drivers/rmhaihai.c @@ -59,6 +59,7 @@ public: TILE_GET_INFO_MEMBER(get_bg_tile_info); virtual void video_start(); DECLARE_MACHINE_RESET(themj); + UINT32 screen_update_rmhaihai(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); }; @@ -90,10 +91,9 @@ void rmhaihai_state::video_start() 8, 8, 64, 32); } -static SCREEN_UPDATE_IND16( rmhaihai ) +UINT32 rmhaihai_state::screen_update_rmhaihai(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { - rmhaihai_state *state = screen.machine().driver_data<rmhaihai_state>(); - state->m_bg_tilemap->draw(bitmap, cliprect, 0, 0); + m_bg_tilemap->draw(bitmap, cliprect, 0, 0); return 0; } @@ -477,7 +477,7 @@ static MACHINE_CONFIG_START( rmhaihai, rmhaihai_state ) MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) MCFG_SCREEN_SIZE(64*8, 32*8) MCFG_SCREEN_VISIBLE_AREA(4*8, 60*8-1, 2*8, 30*8-1) - MCFG_SCREEN_UPDATE_STATIC(rmhaihai) + MCFG_SCREEN_UPDATE_DRIVER(rmhaihai_state, screen_update_rmhaihai) MCFG_GFXDECODE(rmhaihai) MCFG_PALETTE_LENGTH(0x100) |