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/pkscram.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/pkscram.c')
-rw-r--r-- | src/mame/drivers/pkscram.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/pkscram.c b/src/mame/drivers/pkscram.c index 3f27a7cbe68..d088584d552 100644 --- a/src/mame/drivers/pkscram.c +++ b/src/mame/drivers/pkscram.c @@ -225,14 +225,14 @@ TIMER_DEVICE_CALLBACK_MEMBER(pkscram_state::scanline_callback) { if (m_out & 0x2000) m_maincpu->set_input_line(1, ASSERT_LINE); - timer.adjust(machine().primary_screen->time_until_pos(param + 1), param+1); + timer.adjust(m_screen->time_until_pos(param + 1), param+1); m_interrupt_line_active = 1; } else { if (m_interrupt_line_active) m_maincpu->set_input_line(1, CLEAR_LINE); - timer.adjust(machine().primary_screen->time_until_pos(interrupt_scanline), interrupt_scanline); + timer.adjust(m_screen->time_until_pos(interrupt_scanline), interrupt_scanline); m_interrupt_line_active = 0; } } @@ -295,7 +295,7 @@ void pkscram_state::machine_reset() m_out = 0; m_interrupt_line_active=0; timer_device *scanline_timer = machine().device<timer_device>("scan_timer"); - scanline_timer->adjust(machine().primary_screen->time_until_pos(interrupt_scanline), interrupt_scanline); + scanline_timer->adjust(m_screen->time_until_pos(interrupt_scanline), interrupt_scanline); } static MACHINE_CONFIG_START( pkscramble, pkscram_state ) |