diff options
Diffstat (limited to 'src/mame/video/tc0180vcu.h')
-rw-r--r-- | src/mame/video/tc0180vcu.h | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/src/mame/video/tc0180vcu.h b/src/mame/video/tc0180vcu.h index 93eb3d877c0..0692158d5e2 100644 --- a/src/mame/video/tc0180vcu.h +++ b/src/mame/video/tc0180vcu.h @@ -5,11 +5,6 @@ #pragma once -#define MCFG_TC0180VCU_INTH_CALLBACK(_write) \ - downcast<tc0180vcu_device &>(*device).set_inth_callback(DEVCB_##_write); -#define MCFG_TC0180VCU_INTL_CALLBACK(_write) \ - downcast<tc0180vcu_device &>(*device).set_intl_callback(DEVCB_##_write); - class tc0180vcu_device : public device_t, public device_gfx_interface, public device_video_interface { public: @@ -20,8 +15,8 @@ public: void set_bg_colorbase(int color) { m_bg_color_base = color; } void set_fg_colorbase(int color) { m_fg_color_base = color; } void set_tx_colorbase(int color) { m_tx_color_base = color; } - template <class Object> devcb_base &set_inth_callback(Object &&cb) { return m_inth_callback.set_callback(std::forward<Object>(cb)); } - template <class Object> devcb_base &set_intl_callback(Object &&cb) { return m_intl_callback.set_callback(std::forward<Object>(cb)); } + auto inth_callback() { return m_inth_callback.bind(); } + auto intl_callback() { return m_intl_callback.bind(); } uint8_t get_videoctrl() { return m_video_control; } DECLARE_WRITE16_MEMBER( ctrl_w ); @@ -84,16 +79,4 @@ private: DECLARE_DEVICE_TYPE(TC0180VCU, tc0180vcu_device) -#define MCFG_TC0180VCU_FB_COLORBASE(_color) \ - downcast<tc0180vcu_device &>(*device).set_fb_colorbase(_color); - -#define MCFG_TC0180VCU_BG_COLORBASE(_color) \ - downcast<tc0180vcu_device &>(*device).set_bg_colorbase(_color); - -#define MCFG_TC0180VCU_FG_COLORBASE(_color) \ - downcast<tc0180vcu_device &>(*device).set_fg_colorbase(_color); - -#define MCFG_TC0180VCU_TX_COLORBASE(_color) \ - downcast<tc0180vcu_device &>(*device).set_tx_colorbase(_color); - #endif // MAME_VIDEO_TC0180VCU_H |