diff options
author | 2016-12-25 00:57:32 -0500 | |
---|---|---|
committer | 2017-01-31 21:07:05 -0500 | |
commit | 3f7e68138b2ffc87bc257d048f1effa4b685c4ef (patch) | |
tree | 387f9ede30e90d4dc4e13818bb4e0e77d9d50664 /src/devices/video/v9938.h | |
parent | ecf9eeefc2a9b99b9940a04cffe9dc50593dcdef (diff) |
Make devcb objects more consistently available for further configuration (nw)
Diffstat (limited to 'src/devices/video/v9938.h')
-rw-r--r-- | src/devices/video/v9938.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/video/v9938.h b/src/devices/video/v9938.h index ae95f47ff0d..58846d58512 100644 --- a/src/devices/video/v9938.h +++ b/src/devices/video/v9938.h @@ -51,7 +51,7 @@ MCFG_SCREEN_PALETTE(_v9938_tag":palette") #define MCFG_V99X8_INTERRUPT_CALLBACK(_irq) \ - downcast<v99x8_device *>(device)->set_interrupt_callback(DEVCB_##_irq); + devcb = &downcast<v99x8_device *>(device)->set_interrupt_callback(DEVCB_##_irq); //************************************************************************** @@ -79,8 +79,8 @@ protected: v99x8_device(const machine_config &mconfig, device_type type, const char *name, const char *shortname, const char *tag, device_t *owner, uint32_t clock); public: - template<class _irq> void set_interrupt_callback(_irq irq) { - m_int_callback.set_callback(irq); + template<class _irq> devcb_base &set_interrupt_callback(_irq irq) { + return m_int_callback.set_callback(irq); } int get_transpen(); bitmap_ind16 &get_bitmap() { return m_bitmap; } |