diff options
author | 2018-02-25 14:18:39 +0100 | |
---|---|---|
committer | 2018-02-25 14:18:39 +0100 | |
commit | 9cc815af31f4d8a406349d35b0871328a1471e08 (patch) | |
tree | 6ade99610cf8234826cf6cd2c80ea8d4a1646439 /src/devices/video/i8244.h | |
parent | f07b93b0532d379eb542ca507b103e71196e9147 (diff) |
de-staticify initializations for src/devices/video (#3270)
Diffstat (limited to 'src/devices/video/i8244.h')
-rw-r--r-- | src/devices/video/i8244.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/devices/video/i8244.h b/src/devices/video/i8244.h index 543712883e3..44260b7ecf3 100644 --- a/src/devices/video/i8244.h +++ b/src/devices/video/i8244.h @@ -25,9 +25,9 @@ MCFG_I8244_IRQ_CB(_irq_cb) \ MCFG_I8244_POSTPROCESS_CB(_postprocess_cb) #define MCFG_I8244_IRQ_CB(_devcb) \ - devcb = &i8244_device::set_irq_cb(*device, DEVCB_##_devcb); + devcb = &downcast<i8244_device &>(*device).set_irq_cb(DEVCB_##_devcb); #define MCFG_I8244_POSTPROCESS_CB(_devcb) \ - devcb = &i8244_device::set_postprocess_cb(*device, DEVCB_##_devcb); + devcb = &downcast<i8244_device &>(*device).set_postprocess_cb(DEVCB_##_devcb); #define MCFG_I8245_ADD(_tag, _clock, _screen_tag, _irq_cb, _postprocess_cb) \ MCFG_DEVICE_ADD(_tag, I8245, _clock) \ MCFG_VIDEO_SET_SCREEN(_screen_tag) \ @@ -49,9 +49,9 @@ public: // construction/destruction i8244_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - // static configuration helpers - template <class Object> static devcb_base &set_irq_cb(device_t &device, Object &&cb) { return downcast<i8244_device &>(device).m_irq_func.set_callback(std::forward<Object>(cb)); } - template <class Object> static devcb_base &set_postprocess_cb(device_t &device, Object &&cb) { return downcast<i8244_device &>(device).m_postprocess_func.set_callback(std::forward<Object>(cb)); } + // configuration helpers + template <class Object> devcb_base &set_irq_cb(Object &&cb) { return m_irq_func.set_callback(std::forward<Object>(cb)); } + template <class Object> devcb_base &set_postprocess_cb(Object &&cb) { return m_postprocess_func.set_callback(std::forward<Object>(cb)); } DECLARE_READ8_MEMBER(read); DECLARE_WRITE8_MEMBER(write); |