summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/wwfwfest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/wwfwfest.c')
-rw-r--r--src/mame/drivers/wwfwfest.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/wwfwfest.c b/src/mame/drivers/wwfwfest.c
index 52028d0315d..22c4bd52396 100644
--- a/src/mame/drivers/wwfwfest.c
+++ b/src/mame/drivers/wwfwfest.c
@@ -342,7 +342,7 @@ GFXDECODE_END
Interrupt Function
*******************************************************************************/
-static TIMER_DEVICE_CALLBACK( wwfwfest_scanline )
+TIMER_DEVICE_CALLBACK_MEMBER(wwfwfest_state::wwfwfest_scanline)
{
int scanline = param;
@@ -350,15 +350,15 @@ static TIMER_DEVICE_CALLBACK( wwfwfest_scanline )
if (scanline % 16 == 0)
{
if (scanline > 0)
- timer.machine().primary_screen->update_partial(scanline - 1);
- timer.machine().device("maincpu")->execute().set_input_line(2, ASSERT_LINE);
+ machine().primary_screen->update_partial(scanline - 1);
+ machine().device("maincpu")->execute().set_input_line(2, ASSERT_LINE);
}
/* Vblank is raised on scanline 248 */
if (scanline == 248)
{
- timer.machine().primary_screen->update_partial(scanline - 1);
- timer.machine().device("maincpu")->execute().set_input_line(3, ASSERT_LINE);
+ machine().primary_screen->update_partial(scanline - 1);
+ machine().device("maincpu")->execute().set_input_line(3, ASSERT_LINE);
}
}
@@ -387,7 +387,7 @@ static MACHINE_CONFIG_START( wwfwfest, wwfwfest_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", M68000, CPU_CLOCK) /* 24 crystal, 12 rated chip */
MCFG_CPU_PROGRAM_MAP(main_map)
- MCFG_TIMER_ADD_SCANLINE("scantimer", wwfwfest_scanline, "screen", 0, 1)
+ MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", wwfwfest_state, wwfwfest_scanline, "screen", 0, 1)
MCFG_CPU_ADD("audiocpu", Z80, XTAL_3_579545MHz)
MCFG_CPU_PROGRAM_MAP(sound_map)