From 0313393702fee61ed65250f1cc712c7737872770 Mon Sep 17 00:00:00 2001 From: AJR Date: Sun, 14 Oct 2018 08:07:11 -0400 Subject: [PATCH] Fix build after 78494b79461536be37f79ca084fb3d485895f5ac (nw) --- src/devices/video/ramdac.h | 4 ++-- src/mame/drivers/goldstar.cpp | 2 +- src/mame/drivers/skylncr.cpp | 4 ++-- src/mame/drivers/sliver.cpp | 2 +- src/mame/drivers/wildpkr.cpp | 3 ++- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/devices/video/ramdac.h b/src/devices/video/ramdac.h index 04db99ab945..47671009f68 100644 --- a/src/devices/video/ramdac.h +++ b/src/devices/video/ramdac.h @@ -26,10 +26,10 @@ class ramdac_device : public device_t, public: // construction/destruction template - ramdac_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, T &&tag) + ramdac_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, T &&palette_tag) : ramdac_device(mconfig, tag, owner, clock) { - m_palette.set_tag(std::forward(tag)); + m_palette.set_tag(std::forward(palette_tag)); } ramdac_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); diff --git a/src/mame/drivers/goldstar.cpp b/src/mame/drivers/goldstar.cpp index 5adf78da874..14b310be8f8 100644 --- a/src/mame/drivers/goldstar.cpp +++ b/src/mame/drivers/goldstar.cpp @@ -8389,7 +8389,7 @@ MACHINE_CONFIG_START(sanghopm_state::star100) MCFG_SCREEN_VBLANK_CALLBACK(HOLDLINE("maincpu", 0)) MCFG_PALETTE_ADD("palette", 0x100) - MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette") + RAMDAC(config, "ramdac", 0, "palette").set_addrmap(0, &sanghopm_state::ramdac_map); MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_sangho) diff --git a/src/mame/drivers/skylncr.cpp b/src/mame/drivers/skylncr.cpp index 491245d3795..2594c8fd930 100644 --- a/src/mame/drivers/skylncr.cpp +++ b/src/mame/drivers/skylncr.cpp @@ -1681,11 +1681,11 @@ MACHINE_CONFIG_START(skylncr_state::skylncr) MCFG_PALETTE_ADD("palette", 0x200) ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, m_palette)); - ramdac.set_addrmap(0, &nibble_state::ramdac_map); + ramdac.set_addrmap(0, &skylncr_state::ramdac_map); ramdac.set_color_base(0); ramdac_device &ramdac2(RAMDAC(config, "ramdac2", 0, m_palette)); - ramdac2.set_addrmap(0, &nibble_state::ramdac2_map); + ramdac2.set_addrmap(0, &skylncr_state::ramdac2_map); ramdac2.set_color_base(0x100); /* sound hardware */ diff --git a/src/mame/drivers/sliver.cpp b/src/mame/drivers/sliver.cpp index da7e984cd2a..aed4fe6acdb 100644 --- a/src/mame/drivers/sliver.cpp +++ b/src/mame/drivers/sliver.cpp @@ -537,7 +537,7 @@ MACHINE_CONFIG_START(sliver_state::sliver) MCFG_PALETTE_ADD("palette", 0x100) ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, "palette")); - ramdac.set_addrmap(0, &adp_state::ramdac_map); + ramdac.set_addrmap(0, &sliver_state::ramdac_map); SPEAKER(config, "lspeaker").front_left(); SPEAKER(config, "rspeaker").front_right(); diff --git a/src/mame/drivers/wildpkr.cpp b/src/mame/drivers/wildpkr.cpp index 5c365becfe5..ebd33228905 100644 --- a/src/mame/drivers/wildpkr.cpp +++ b/src/mame/drivers/wildpkr.cpp @@ -524,7 +524,8 @@ MACHINE_CONFIG_START(wildpkr_state::tabpkr) MCFG_HD63484_ADD("acrtc", 0, hd63484_map) - MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette") + ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, "palette")); + ramdac.set_addrmap(0, &wildpkr_state::ramdac_map); MCFG_PALETTE_ADD("palette", 256) MCFG_PALETTE_INIT_OWNER(wildpkr_state, wildpkr)