diff options
author | 2014-02-16 17:32:10 +0000 | |
---|---|---|
committer | 2014-02-16 17:32:10 +0000 | |
commit | 7cde79cd9cc8d2fa5ecda0709c15d0f39af92646 (patch) | |
tree | cf6a74146f83c43bc272302c0a6f7ffccdf364e9 /src/mess/drivers/itt3030.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/mess/drivers/itt3030.c')
-rw-r--r-- | src/mess/drivers/itt3030.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |