summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/nwk-tr.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2013-04-13 14:25:45 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2013-04-13 14:25:45 +0000
commit3d158cc97bd17ad86f6b2ca728973c3ca7cafe71 (patch)
tree7c91547bca2bcd47cfee485f2ccc5d241ad6899d /src/mame/drivers/nwk-tr.c
parent58c73283d88f551e089d3cbbe9d820fc38f57d06 (diff)
konami hell resolve (nw)
Diffstat (limited to 'src/mame/drivers/nwk-tr.c')
-rw-r--r--src/mame/drivers/nwk-tr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mame/drivers/nwk-tr.c b/src/mame/drivers/nwk-tr.c
index 07d4e838f76..8cdd951a5a0 100644
--- a/src/mame/drivers/nwk-tr.c
+++ b/src/mame/drivers/nwk-tr.c
@@ -233,7 +233,8 @@ public:
: driver_device(mconfig, type, tag),
m_work_ram(*this, "work_ram"),
m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu") { }
+ m_audiocpu(*this, "audiocpu"),
+ m_k001604(*this, "k001604") { }
UINT8 m_led_reg0;
UINT8 m_led_reg1;
@@ -261,6 +262,7 @@ public:
void lanc2_init();
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
+ required_device<k001604_device> m_k001604;
};
@@ -283,7 +285,6 @@ static void voodoo_vblank_0(device_t *device, int param)
UINT32 nwktr_state::screen_update_nwktr(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
{
device_t *voodoo = machine().device("voodoo");
- device_t *k001604 = machine().device("k001604");
bitmap.fill(machine().pens[0], cliprect);
@@ -292,7 +293,7 @@ UINT32 nwktr_state::screen_update_nwktr(screen_device &screen, bitmap_rgb32 &bit
const rectangle &visarea = screen.visible_area();
const rectangle tilemap_rect(visarea.min_x, visarea.max_x, visarea.min_y+16, visarea.max_y);
- k001604_draw_front_layer(k001604, bitmap, tilemap_rect);
+ k001604_draw_front_layer(m_k001604, bitmap, tilemap_rect);
draw_7segment_led(bitmap, 3, 3, m_led_reg0);
draw_7segment_led(bitmap, 9, 3, m_led_reg1);