diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2016-04-02 17:40:09 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2016-04-02 17:40:09 -0400 |
commit | 27a27d460ccc75dffe150adc9cf2d682daa36ea7 (patch) | |
tree | d431f768bd0b5e0d9edff6f005c47102a0bc0f78 /src/mame/drivers/vaportra.cpp | |
parent | b33b497d1eb467e6079f2ee27a9296541e65dcfe (diff) |
Reduce the incidence of required_device<palette_device> in subdevices
Any device implementing device_gfx_interface will require a palette and, once it has started (which many video devices already check for), allow other devices to access it through a getter. This makes it unnecessary in most cases for devices to require both a gfxdecode and a palette; indeed, many devices went on to not use the palette at all.
Most cases have been solved in one of two contrasting ways: remove the palette finder and associated macros for configuring it, or implement device_gfx_interface and remove the gfxdecode finder. The latter solution, generally adopted for devices that decoded their own graphics internally or through their own subdevice, has doubled the number of implementations of device_gfx_interface and eliminated the need for Konami games to provide empty gfxdecodes.
Diffstat (limited to 'src/mame/drivers/vaportra.cpp')
-rw-r--r-- | src/mame/drivers/vaportra.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mame/drivers/vaportra.cpp b/src/mame/drivers/vaportra.cpp index 4f30b993a32..0eaa9a755b7 100644 --- a/src/mame/drivers/vaportra.cpp +++ b/src/mame/drivers/vaportra.cpp @@ -254,7 +254,6 @@ static MACHINE_CONFIG_START( vaportra, vaportra_state ) MCFG_DECO16IC_PF12_8X8_BANK(0) MCFG_DECO16IC_PF12_16X16_BANK(1) MCFG_DECO16IC_GFXDECODE("gfxdecode") - MCFG_DECO16IC_PALETTE("palette") MCFG_DEVICE_ADD("tilegen2", DECO16IC, 0) MCFG_DECO16IC_SPLIT(0) @@ -270,12 +269,10 @@ static MACHINE_CONFIG_START( vaportra, vaportra_state ) MCFG_DECO16IC_PF12_8X8_BANK(2) MCFG_DECO16IC_PF12_16X16_BANK(3) MCFG_DECO16IC_GFXDECODE("gfxdecode") - MCFG_DECO16IC_PALETTE("palette") MCFG_DEVICE_ADD("spritegen", DECO_MXC06, 0) - deco_mxc06_device::set_gfx_region(*device, 4); + MCFG_DECO_MXC06_GFX_REGION(4) MCFG_DECO_MXC06_GFXDECODE("gfxdecode") - MCFG_DECO_MXC06_PALETTE("palette") /* sound hardware */ MCFG_SPEAKER_STANDARD_MONO("mono") |