summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/hd44102.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/video/hd44102.h')
-rw-r--r--src/devices/video/hd44102.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/devices/video/hd44102.h b/src/devices/video/hd44102.h
index 1688a502441..a484ce77478 100644
--- a/src/devices/video/hd44102.h
+++ b/src/devices/video/hd44102.h
@@ -12,6 +12,19 @@
#pragma once
+
+
+///*************************************************************************
+// INTERFACE CONFIGURATION MACROS
+///*************************************************************************
+
+#define MCFG_HD44102_ADD(_tag, _screen_tag, _sx, _sy) \
+ MCFG_DEVICE_ADD(_tag, HD44102, 0) \
+ MCFG_VIDEO_SET_SCREEN(_screen_tag) \
+ downcast<hd44102_device &>(*device).set_offsets(_sx, _sy);
+
+
+
///*************************************************************************
// TYPE DEFINITIONS
///*************************************************************************
@@ -23,14 +36,6 @@ class hd44102_device : public device_t,
{
public:
// construction/destruction
- template <typename T>
- hd44102_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, T &&screen_tag, int sx, int sy)
- :hd44102_device(mconfig, tag, owner, clock)
- {
- set_screen(std::forward<T>(screen_tag));
- set_offsets(sx, sy);
- }
-
hd44102_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// inline configuration helpers