diff options
Diffstat (limited to 'src/devices/video/ramdac.h')
-rw-r--r-- | src/devices/video/ramdac.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/video/ramdac.h b/src/devices/video/ramdac.h index e090257023c..be8e885b54a 100644 --- a/src/devices/video/ramdac.h +++ b/src/devices/video/ramdac.h @@ -18,10 +18,10 @@ // INTERFACE CONFIGURATION MACROS //************************************************************************** -#define MCFG_RAMDAC_ADD(_tag, _map, _palette_tag) \ +#define MCFG_RAMDAC_ADD(_tag, _map, _palette) \ MCFG_DEVICE_ADD(_tag, RAMDAC, 0) \ MCFG_DEVICE_ADDRESS_MAP(0, _map) \ - downcast<ramdac_device &>(*device).set_palette_tag(_palette_tag); + downcast<ramdac_device &>(*device).set_palette(_palette); #define MCFG_RAMDAC_COLOR_BASE(_color_base) \ downcast<ramdac_device &>(*device).set_color_base(_color_base); @@ -44,7 +44,7 @@ public: ramdac_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // configuration - void set_palette_tag(const char *tag) { m_palette.set_tag(tag); } + template <typename T> void set_palette(T &&tag) { m_palette.set_tag(std::forward<T>(tag)); } void set_color_base(uint32_t color_base) { m_color_base = color_base; } void set_split_read(int split) { m_split_read_reg = split; } |