summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/huc6261.h
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-05-13 13:31:20 -0400
committer AJR <ajrhacker@users.noreply.github.com>2018-05-13 13:31:20 -0400
commit1d6813713596cbdbbd9fe592cd3367f1551aadaf (patch)
tree160efa0bf863dca994f974b8418381d11bf67a04 /src/devices/video/huc6261.h
parent05ca2a543b8871123a4ead1518029ab8f824cab6 (diff)
huc6261, huc6272: Use required_device instead of explicit lookups (nw)
Diffstat (limited to 'src/devices/video/huc6261.h')
-rw-r--r--src/devices/video/huc6261.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/devices/video/huc6261.h b/src/devices/video/huc6261.h
index 99ad5e422d6..f3621688d44 100644
--- a/src/devices/video/huc6261.h
+++ b/src/devices/video/huc6261.h
@@ -36,9 +36,9 @@ public:
// construction/destruction
huc6261_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- void set_vdc1_tag(const char *tag) { m_huc6270_a_tag = tag; }
- void set_vdc2_tag(const char *tag) { m_huc6270_b_tag = tag; }
- void set_king_tag(const char *tag) { m_huc6272_tag = tag; }
+ void set_vdc1_tag(const char *tag) { m_huc6270_a.set_tag(tag); }
+ void set_vdc2_tag(const char *tag) { m_huc6270_b.set_tag(tag); }
+ void set_king_tag(const char *tag) { m_huc6272.set_tag(tag); }
void video_update(bitmap_rgb32 &bitmap, const rectangle &cliprect);
DECLARE_READ16_MEMBER( read );
@@ -51,13 +51,9 @@ protected:
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
private:
- const char *m_huc6270_a_tag;
- const char *m_huc6270_b_tag;
- const char *m_huc6272_tag;
-
- huc6270_device *m_huc6270_a;
- huc6270_device *m_huc6270_b;
- huc6272_device *m_huc6272;
+ required_device<huc6270_device> m_huc6270_a;
+ required_device<huc6270_device> m_huc6270_b;
+ required_device<huc6272_device> m_huc6272;
int m_last_h;
int m_last_v;
int m_height;