diff options
Diffstat (limited to 'src/mame/drivers/gunsmoke.cpp')
-rw-r--r-- | src/mame/drivers/gunsmoke.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mame/drivers/gunsmoke.cpp b/src/mame/drivers/gunsmoke.cpp index 6e3e86be024..0c9f31fb998 100644 --- a/src/mame/drivers/gunsmoke.cpp +++ b/src/mame/drivers/gunsmoke.cpp @@ -321,13 +321,11 @@ MACHINE_CONFIG_START(gunsmoke_state::gunsmoke) MCFG_SCREEN_SIZE(32*8, 32*8) MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) MCFG_SCREEN_UPDATE_DRIVER(gunsmoke_state, screen_update_gunsmoke) - MCFG_SCREEN_PALETTE("palette") + MCFG_SCREEN_PALETTE(m_palette) - MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_gunsmoke) + MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, m_palette, gfx_gunsmoke) - MCFG_PALETTE_ADD("palette", 32*4+16*16+16*16) - MCFG_PALETTE_INDIRECT_ENTRIES(256) - MCFG_PALETTE_INIT_OWNER(gunsmoke_state, gunsmoke) + PALETTE(config, m_palette, FUNC(gunsmoke_state::gunsmoke_palette), 32*4 + 16*16 + 16*16, 256); /* sound hardware */ SPEAKER(config, "mono").front_center(); |