From 7cde79cd9cc8d2fa5ecda0709c15d0f39af92646 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sun, 16 Feb 2014 17:32:10 +0000 Subject: 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. --- src/mess/drivers/itt3030.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mess/drivers/itt3030.c') diff --git a/src/mess/drivers/itt3030.c b/src/mess/drivers/itt3030.c index 2ec875b3372..686436e9ce0 100644 --- a/src/mess/drivers/itt3030.c +++ b/src/mess/drivers/itt3030.c @@ -358,7 +358,7 @@ UINT32 itt3030_state::screen_update( screen_device &screen, bitmap_ind16 &bitmap for(int x = 0; x < 80; x++ ) { UINT8 code = m_vram[x + y*128]; - machine().gfx[0]->opaque(bitmap,cliprect, code , 0, 0,0, x*8,y*16); + m_gfxdecode->gfx(0)->opaque(bitmap,cliprect, code , 0, 0,0, x*8,y*16); } } @@ -622,7 +622,7 @@ static MACHINE_CONFIG_START( itt3030, itt3030_state ) MCFG_FLOPPY_DRIVE_ADD("fdc:0", itt3030_floppies, "525dd", itt3030_state::itt3030_floppy_formats) MCFG_FLOPPY_DRIVE_ADD("fdc:1", itt3030_floppies, "525dd", itt3030_state::itt3030_floppy_formats) - MCFG_GFXDECODE(itt3030) + MCFG_GFXDECODE_ADD("gfxdecode", itt3030) MCFG_PALETTE_LENGTH(2) MCFG_PALETTE_INIT_OVERRIDE(driver_device, black_and_white) -- cgit v1.2.3-70-g09d2