Previous 199869 Revisions Next

r29353 Sunday 6th April, 2014 at 08:12:24 UTC by Alex Jackson
Use owner()->subdevice instead of siblingdevice() like devcb2 does (nw)
[src/emu]digfx.c
[src/emu/bus/iq151]video32.c video64.c
[src/mame/video]c45.c
[src/mess/machine]megacd.c

trunk/src/emu/digfx.c
r29352r29353
8080
8181   // find our palette device, either as a sibling device or subdevice
8282   if (m_palette_is_sibling)
83      m_palette = device().siblingdevice<palette_device>(m_palette_tag);
83      m_palette = device().owner()->subdevice<palette_device>(m_palette_tag);
8484   else
8585      m_palette = device().subdevice<palette_device>(m_palette_tag);
8686
r29352r29353
301301   {
302302      palette_device *palette;
303303      if (m_palette_is_sibling)
304         palette = device().siblingdevice<palette_device>(m_palette_tag);
304         palette = device().owner()->subdevice<palette_device>(m_palette_tag);
305305      else
306306         palette = device().subdevice<palette_device>(m_palette_tag);
307307
trunk/src/emu/bus/iq151/video32.c
r29352r29353
4040GFXDECODE_END
4141
4242static MACHINE_CONFIG_FRAGMENT( video32 )
43   MCFG_GFXDECODE_ADD("gfxdecode", ":palette", video32)
43   MCFG_GFXDECODE_ADD("gfxdecode", "^^palette", video32)
4444MACHINE_CONFIG_END
4545
4646//**************************************************************************
trunk/src/emu/bus/iq151/video64.c
r29352r29353
4040GFXDECODE_END
4141
4242static MACHINE_CONFIG_FRAGMENT( video64 )
43   MCFG_GFXDECODE_ADD("gfxdecode", ":palette", video64)
43   MCFG_GFXDECODE_ADD("gfxdecode", "^^palette", video64)
4444MACHINE_CONFIG_END
4545
4646//**************************************************************************
trunk/src/mess/machine/megacd.c
r29352r29353
312312   MCFG_TIMER_DRIVER_ADD("stamp_timer", sega_segacd_device, segacd_gfx_conversion_timer_callback)
313313   MCFG_TIMER_DRIVER_ADD("scd_dma_timer", sega_segacd_device, scd_dma_timer_callback)
314314
315   MCFG_GFXDECODE_ADD("gfxdecode", ":gen_vdp:palette", segacd) // FIXME
315   MCFG_GFXDECODE_ADD("gfxdecode", "^gen_vdp:palette", segacd) // FIXME
316316
317317   MCFG_DEFAULT_LAYOUT( layout_megacd )
318318
trunk/src/mame/video/c45.c
r29352r29353
214214}
215215
216216MACHINE_CONFIG_FRAGMENT( namco_c45_road )
217   MCFG_GFXDECODE_ADD("gfxdecode", ":palette", empty) // FIXME
217   MCFG_GFXDECODE_ADD("gfxdecode", "^palette", empty) // FIXME
218218MACHINE_CONFIG_END
219219//-------------------------------------------------
220220//  device_mconfig_additions - return a pointer to

Previous 199869 Revisions Next


© 1997-2024 The MAME Team