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/murogmbl.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/murogmbl.c')
-rw-r--r-- | src/mame/drivers/murogmbl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/murogmbl.c b/src/mame/drivers/murogmbl.c index eb3d45a2d4f..4641bcf0a2e 100644 --- a/src/mame/drivers/murogmbl.c +++ b/src/mame/drivers/murogmbl.c @@ -100,7 +100,7 @@ void murogmbl_state::video_start() UINT32 murogmbl_state::screen_update_murogmbl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { - gfx_element *gfx = machine().gfx[0]; + gfx_element *gfx = m_gfxdecode->gfx(0); int count = 0; int y, x; @@ -188,7 +188,7 @@ static MACHINE_CONFIG_START( murogmbl, murogmbl_state ) MCFG_CPU_ADD("maincpu", Z80, 1000000) /* Z80? */ MCFG_CPU_PROGRAM_MAP(murogmbl_map) - MCFG_GFXDECODE(murogmbl) + MCFG_GFXDECODE_ADD("gfxdecode", murogmbl) /* video hardware */ |