summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/nmg5.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/nmg5.cpp')
-rw-r--r--src/mame/drivers/nmg5.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/nmg5.cpp b/src/mame/drivers/nmg5.cpp
index f36da0fd338..56dc76c158a 100644
--- a/src/mame/drivers/nmg5.cpp
+++ b/src/mame/drivers/nmg5.cpp
@@ -1000,12 +1000,12 @@ MACHINE_CONFIG_START(nmg5_state::nmg5)
MCFG_PALETTE_ADD("palette", 0x400)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
- MCFG_DEVICE_ADD("spritegen", DECO_SPRITE, 0)
- MCFG_DECO_SPRITE_GFX_REGION(1)
- MCFG_DECO_SPRITE_ISBOOTLEG(true)
- MCFG_DECO_SPRITE_FLIPALLX(1)
- MCFG_DECO_SPRITE_OFFSETS(0, 8)
- MCFG_DECO_SPRITE_GFXDECODE("gfxdecode")
+ DECO_SPRITE(config, m_sprgen, 0);
+ m_sprgen->set_gfx_region(1);
+ m_sprgen->set_is_bootleg(true);
+ m_sprgen->set_flipallx(1);
+ m_sprgen->set_offsets(0, 8);
+ m_sprgen->set_gfxdecode_tag(m_gfxdecode);
/* sound hardware */