diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2014-03-15 12:26:04 +0000 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2014-03-15 12:26:04 +0000 |
commit | 445c89c839044afed3a09478dbd1cdb77f87cf92 (patch) | |
tree | 51584e19d1393933883dbb61ccd7f7b6cc2c71ef | |
parent | 06b8fe391657f7b587970fbc0dbed62406247fcf (diff) |
There is also machine().primary_screen that we should replace wiht m_screen, and most is in devices (nw)
-rw-r--r-- | src/mame/drivers/turrett.c | 2 | ||||
-rw-r--r-- | src/mame/includes/turrett.h | 4 | ||||
-rw-r--r-- | src/mame/video/hng64.c | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/src/mame/drivers/turrett.c b/src/mame/drivers/turrett.c index 5620185eec5..98263ad9edb 100644 --- a/src/mame/drivers/turrett.c +++ b/src/mame/drivers/turrett.c @@ -156,7 +156,7 @@ INPUT_PORTS_END READ_LINE_MEMBER( turrett_state::sbrc2_r ) { - return machine().primary_screen->vblank(); + return m_screen->vblank(); } diff --git a/src/mame/includes/turrett.h b/src/mame/includes/turrett.h index 4fede71ae51..c57407f2c5d 100644 --- a/src/mame/includes/turrett.h +++ b/src/mame/includes/turrett.h @@ -15,7 +15,8 @@ public: m_maincpu(*this, "maincpu"), m_ata(*this, "ata"), m_bank_a(*this, "bank_a"), - m_bank_b(*this, "bank_b") {} + m_bank_b(*this, "bank_b"), + m_screen(*this, "screen") {} // constants static const UINT32 X_VISIBLE = 336; @@ -29,6 +30,7 @@ public: required_device<ata_interface_device> m_ata; required_shared_ptr<UINT16> m_bank_a; required_shared_ptr<UINT16> m_bank_b; + required_device<screen_device> m_screen; // handlers DECLARE_WRITE32_MEMBER(dma_w); diff --git a/src/mame/video/hng64.c b/src/mame/video/hng64.c index ca085b8ae09..fde784d8d8a 100644 --- a/src/mame/video/hng64.c +++ b/src/mame/video/hng64.c @@ -2507,7 +2507,7 @@ void hng64_state::clear3d() { int i; - const rectangle &visarea = machine().primary_screen->visible_area(); + const rectangle &visarea = m_screen->visible_area(); // Clear each of the display list buffers after drawing - todo: kill! for (i = 0; i < 0x81; i++) |