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/firefox.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/firefox.c')
-rw-r--r-- | src/mame/drivers/firefox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/firefox.c b/src/mame/drivers/firefox.c index 1d39b2e540d..18b92561c77 100644 --- a/src/mame/drivers/firefox.c +++ b/src/mame/drivers/firefox.c @@ -218,7 +218,7 @@ void firefox_state::video_start() { m_bgtiles = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(firefox_state::bgtile_get_info),this), TILEMAP_SCAN_ROWS, 8,8, 64,64); m_bgtiles->set_transparent_pen(0); - m_bgtiles->set_scrolldy(machine().primary_screen->visible_area().min_y, 0); + m_bgtiles->set_scrolldy(m_screen->visible_area().min_y, 0); } @@ -259,7 +259,7 @@ UINT32 firefox_state::screen_update_firefox(screen_device &screen, bitmap_rgb32 TIMER_DEVICE_CALLBACK_MEMBER(firefox_state::video_timer_callback) { - machine().primary_screen->update_now(); + m_screen->update_now(); m_maincpu->set_input_line(M6809_IRQ_LINE, ASSERT_LINE ); } |