summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/sandscrp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/sandscrp.cpp')
-rw-r--r--src/mame/drivers/sandscrp.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mame/drivers/sandscrp.cpp b/src/mame/drivers/sandscrp.cpp
index a0ad49c5fa8..79d78641f22 100644
--- a/src/mame/drivers/sandscrp.cpp
+++ b/src/mame/drivers/sandscrp.cpp
@@ -98,7 +98,7 @@ public:
, m_view2(*this, "view2")
, m_soundlatch(*this, "soundlatch%u", 1)
, m_audiobank(*this, "audiobank")
- { }
+ { }
void sandscrp(machine_config &config);
@@ -490,9 +490,8 @@ MACHINE_CONFIG_START(sandscrp_state::sandscrp)
MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, sandscrp_state, screen_vblank))
MCFG_SCREEN_PALETTE("palette")
- MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_sandscrp)
- MCFG_PALETTE_ADD("palette", 2048)
- MCFG_PALETTE_FORMAT(xGGGGGRRRRRBBBBB)
+ GFXDECODE(config, "gfxdecode", "palette", gfx_sandscrp);
+ PALETTE(config, "palette").set_format(palette_device::xGRB_555, 2048);
KANEKO_TMAP(config, m_view2);
m_view2->set_gfx_region(1);
@@ -512,8 +511,7 @@ MACHINE_CONFIG_START(sandscrp_state::sandscrp)
GENERIC_LATCH_8(config, m_soundlatch[1]);
- MCFG_DEVICE_ADD("oki", OKIM6295, 12000000/6, okim6295_device::PIN7_HIGH)
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5)
+ OKIM6295(config, "oki", 12000000/6, okim6295_device::PIN7_HIGH).add_route(ALL_OUTPUTS, "mono", 0.5);
/* YM3014B + YM2203C */
ym2203_device &ymsnd(YM2203(config, "ymsnd", 4000000));