diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2014-02-16 17:32:10 +0000 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2014-02-16 17:32:10 +0000 |
commit | 7cde79cd9cc8d2fa5ecda0709c15d0f39af92646 (patch) | |
tree | cf6a74146f83c43bc272302c0a6f7ffccdf364e9 /src/mame/drivers/dacholer.c | |
parent | 36d081e756af22894f32c3497202925ce8d7f873 (diff) |
Created gfxdecode_device instead of using machine fixed gfxdecode [Miodrag Milanovic]
Updated all devices and drivers for using it.
out of whatsnew:
Note that it is made to work same as before, in some cases it can be more
logic to move gfxdevice into subdevice itself then to keep it in main driver.
Diffstat (limited to 'src/mame/drivers/dacholer.c')
-rw-r--r-- | src/mame/drivers/dacholer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/dacholer.c b/src/mame/drivers/dacholer.c index 7eb95ef5224..78ba3e57b96 100644 --- a/src/mame/drivers/dacholer.c +++ b/src/mame/drivers/dacholer.c @@ -100,12 +100,12 @@ public: TILE_GET_INFO_MEMBER(dacholer_state::get_bg_tile_info) { - SET_TILE_INFO_MEMBER(1, m_bgvideoram[tile_index] + m_bg_bank * 0x100, 0, 0); + SET_TILE_INFO_MEMBER(m_gfxdecode, 1, m_bgvideoram[tile_index] + m_bg_bank * 0x100, 0, 0); } TILE_GET_INFO_MEMBER(dacholer_state::get_fg_tile_info) { - SET_TILE_INFO_MEMBER(0, m_fgvideoram[tile_index], 0, 0); + SET_TILE_INFO_MEMBER(m_gfxdecode, 0, m_fgvideoram[tile_index], 0, 0); } void dacholer_state::video_start() @@ -149,7 +149,7 @@ void dacholer_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &clipre flipy = !flipy; } - machine().gfx[2]->transpen(bitmap,cliprect, + m_gfxdecode->gfx(2)->transpen(bitmap,cliprect, code, 0, flipx,flipy, @@ -669,7 +669,7 @@ static MACHINE_CONFIG_START( dacholer, dacholer_state ) MCFG_SCREEN_UPDATE_DRIVER(dacholer_state, screen_update_dacholer) MCFG_PALETTE_LENGTH(32) - MCFG_GFXDECODE(dacholer) + MCFG_GFXDECODE_ADD("gfxdecode", dacholer) /* sound hardware */ @@ -698,7 +698,7 @@ static MACHINE_CONFIG_DERIVED( itaten, dacholer ) MCFG_CPU_IO_MAP(itaten_snd_io_map) MCFG_CPU_VBLANK_INT_REMOVE() - MCFG_GFXDECODE(itaten) + MCFG_GFXDECODE_MODIFY("gfxdecode", itaten) MCFG_DEVICE_REMOVE("msm") MACHINE_CONFIG_END |