summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/overdriv.cpp
diff options
context:
space:
mode:
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
commit27a27d460ccc75dffe150adc9cf2d682daa36ea7 (patch)
treed431f768bd0b5e0d9edff6f005c47102a0bc0f78 /src/mame/drivers/overdriv.cpp
parentb33b497d1eb467e6079f2ee27a9296541e65dcfe (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/overdriv.cpp')
-rw-r--r--src/mame/drivers/overdriv.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mame/drivers/overdriv.cpp b/src/mame/drivers/overdriv.cpp
index 5dd5191318b..c5b1f19898d 100644
--- a/src/mame/drivers/overdriv.cpp
+++ b/src/mame/drivers/overdriv.cpp
@@ -340,17 +340,13 @@ static MACHINE_CONFIG_START( overdriv, overdriv_state )
MCFG_SCREEN_UPDATE_DRIVER(overdriv_state, screen_update_overdriv)
MCFG_SCREEN_PALETTE("palette")
-// MCFG_GFXDECODE_ADD("gfxdecode", "palette", overdriv)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
MCFG_PALETTE_ENABLE_SHADOWS()
- MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty)
-
MCFG_DEVICE_ADD("k053246", K053246, 0)
MCFG_K053246_CB(overdriv_state, sprite_callback)
- MCFG_K053246_CONFIG("gfx1", 0, NORMAL_PLANE_ORDER, 77, 22)
- MCFG_K053246_GFXDECODE("gfxdecode")
+ MCFG_K053246_CONFIG("gfx1", NORMAL_PLANE_ORDER, 77, 22)
MCFG_K053246_PALETTE("palette")
MCFG_DEVICE_ADD("k051316_1", K051316, 0)