summaryrefslogtreecommitdiffstats
path: root/src/devices/video/nt7534.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/video/nt7534.h')
-rw-r--r--src/devices/video/nt7534.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/devices/video/nt7534.h b/src/devices/video/nt7534.h
index 75390f8acaa..06e37d2bd26 100644
--- a/src/devices/video/nt7534.h
+++ b/src/devices/video/nt7534.h
@@ -12,6 +12,9 @@
#pragma once
+#define MCFG_NT7534_PIXEL_UPDATE_CB(_class, _method) \
+ downcast<nt7534_device &>(*device).set_pixel_update_cb(nt7534_device::pixel_update_delegate(&_class::_method, #_class "::" #_method, this));
+
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
@@ -29,7 +32,7 @@ public:
// construction/destruction
nt7534_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
- template <typename... T> void set_pixel_update_cb(T &&... args) { m_pixel_update_cb = pixel_update_delegate(std::forward<T>(args)...); }
+ template <typename Object> void set_pixel_update_cb(Object &&cb) { m_pixel_update_cb = std::forward<Object>(cb); }
// device interface
virtual DECLARE_WRITE8_MEMBER(write);