summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/srmp2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/srmp2.cpp')
-rw-r--r--src/mame/drivers/srmp2.cpp19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/mame/drivers/srmp2.cpp b/src/mame/drivers/srmp2.cpp
index 6ac877fd30e..d68744cda27 100644
--- a/src/mame/drivers/srmp2.cpp
+++ b/src/mame/drivers/srmp2.cpp
@@ -1158,11 +1158,8 @@ MACHINE_CONFIG_START(srmp2_state::srmp2)
MCFG_SCREEN_UPDATE_DRIVER(srmp2_state, screen_update_srmp2)
MCFG_SCREEN_PALETTE("palette")
- MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_srmp2)
- MCFG_PALETTE_ADD("palette", 1024) /* sprites only */
- MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
-
- MCFG_PALETTE_INIT_OWNER(srmp2_state,srmp2)
+ GFXDECODE(config, "gfxdecode", "palette", gfx_srmp2);
+ PALETTE(config, "palette", FUNC(srmp2_state::srmp2_palette)).set_format(palette_device::xRGB_555, 1024); // sprites only
/* sound hardware */
SPEAKER(config, "mono").front_center();
@@ -1205,11 +1202,8 @@ MACHINE_CONFIG_START(srmp2_state::srmp3)
MCFG_SCREEN_UPDATE_DRIVER(srmp2_state, screen_update_srmp3)
MCFG_SCREEN_PALETTE("palette")
- MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_srmp3)
- MCFG_PALETTE_ADD("palette", 512) /* sprites only */
- MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
-
- MCFG_PALETTE_INIT_OWNER(srmp2_state,srmp3)
+ GFXDECODE(config, "gfxdecode", "palette", gfx_srmp3);
+ PALETTE(config, "palette", FUNC(srmp2_state::srmp3_palette)).set_format(palette_device::xRGB_555, 512); // sprites only
/* sound hardware */
SPEAKER(config, "mono").front_center();
@@ -1260,9 +1254,8 @@ MACHINE_CONFIG_START(srmp2_state::mjyuugi)
MCFG_SCREEN_UPDATE_DRIVER(srmp2_state, screen_update_mjyuugi)
MCFG_SCREEN_PALETTE("palette")
- MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_srmp3)
- MCFG_PALETTE_ADD("palette", 512) /* sprites only */
- MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
+ GFXDECODE(config, "gfxdecode", "palette", gfx_srmp3);
+ PALETTE(config, "palette").set_format(palette_device::xRGB_555, 512); // sprites only
/* sound hardware */
SPEAKER(config, "mono").front_center();