diff options
author | Aaron Giles <aaron@aarongiles.com> | 2013-08-05 06:00:20 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2013-08-05 06:00:20 +0000 |
commit | 539367c7d1d41b406579c10e67f30aa02500d52d (patch) | |
tree | 1da7471e17992b397494ff3bb92fddb02f43ef34 /src/mame/drivers/astinvad.c | |
parent | 46adb9df434d86e030963bda9a80ea9e60a60f4f (diff) |
Bulk removal of machine().primary_screen references from MAME drivers, in
favor of using the common m_screen. This is 98% reliable except for cases
where there were multiple screens or where the screens were not named
'screen' like everywhere else. Those cases will need to be revisited but
should reveal themselves in the next round of regression tests.
Eventual plan is primary_screen will go away. Devices that need to know the
screen should have a device_video_interface. Drivers should find the screen
device like any other, or use the pre-found m_screen for the common
single-screen case.
Diffstat (limited to 'src/mame/drivers/astinvad.c')
-rw-r--r-- | src/mame/drivers/astinvad.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/astinvad.c b/src/mame/drivers/astinvad.c index f4b8cf07ec8..5d44ef3c158 100644 --- a/src/mame/drivers/astinvad.c +++ b/src/mame/drivers/astinvad.c @@ -267,7 +267,7 @@ TIMER_CALLBACK_MEMBER(astinvad_state::kamizake_int_gen) /* interrupts are asserted on every state change of the 128V line */ m_maincpu->set_input_line(0, ASSERT_LINE); param ^= 128; - m_int_timer->adjust(machine().primary_screen->time_until_pos(param), param); + m_int_timer->adjust(m_screen->time_until_pos(param), param); /* an RC circuit turns the interrupt off after a short amount of time */ timer_set(attotime::from_double(300 * 0.1e-6), TIMER_INT_OFF); @@ -277,7 +277,7 @@ TIMER_CALLBACK_MEMBER(astinvad_state::kamizake_int_gen) MACHINE_START_MEMBER(astinvad_state,kamikaze) { m_int_timer = timer_alloc(TIMER_INT_GEN); - m_int_timer->adjust(machine().primary_screen->time_until_pos(128), 128); + m_int_timer->adjust(m_screen->time_until_pos(128), 128); save_item(NAME(m_screen_flip)); save_item(NAME(m_screen_red)); |