summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/raiden2.c
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2014-03-12 17:59:33 +0000
committer Ivan Vangelista <mesgnet@yahoo.it>2014-03-12 17:59:33 +0000
commit25c46b0656de6c59c14f295dfac6bf199b4b8dba (patch)
treeb05811cdacf6752adc15d70e0450a9e072b7429c /src/mame/drivers/raiden2.c
parent6dba2e1ba248291f761e072f7176ef5b32ba5216 (diff)
Updated seibu_crtc.c to use devcb2 (nw)
Diffstat (limited to 'src/mame/drivers/raiden2.c')
-rw-r--r--src/mame/drivers/raiden2.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/mame/drivers/raiden2.c b/src/mame/drivers/raiden2.c
index 294124100c0..c065b0fac6e 100644
--- a/src/mame/drivers/raiden2.c
+++ b/src/mame/drivers/raiden2.c
@@ -1858,13 +1858,7 @@ static GFXDECODE_START( raiden2 )
GFXDECODE_ENTRY( "gfx3", 0x00000, raiden2_spritelayout, 0x000, 128 )
GFXDECODE_END
-SEIBU_CRTC_INTERFACE(crtc_intf)
-{
- DEVCB_DRIVER_MEMBER16(raiden2_state, tilemap_enable_w),
- DEVCB_DRIVER_MEMBER16(raiden2_state, tile_scroll_w),
-};
-
-
+
/* MACHINE DRIVERS */
static MACHINE_CONFIG_START( raiden2, raiden2_state )
@@ -1890,7 +1884,9 @@ static MACHINE_CONFIG_START( raiden2, raiden2_state )
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
- MCFG_SEIBU_CRTC_ADD("crtc",crtc_intf,0)
+ MCFG_DEVICE_ADD("crtc", SEIBU_CRTC, 0)
+ MCFG_SEIBU_CRTC_LAYER_EN_CALLBACK(WRITE16(raiden2_state, tilemap_enable_w))
+ MCFG_SEIBU_CRTC_LAYER_SCROLL_CALLBACK(WRITE16(raiden2_state, tile_scroll_w))
MCFG_VIDEO_START_OVERRIDE(raiden2_state,raiden2)
@@ -1944,7 +1940,9 @@ static MACHINE_CONFIG_START( zeroteam, raiden2_state )
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
- MCFG_SEIBU_CRTC_ADD("crtc",crtc_intf,0)
+ MCFG_DEVICE_ADD("crtc", SEIBU_CRTC, 0)
+ MCFG_SEIBU_CRTC_LAYER_EN_CALLBACK(WRITE16(raiden2_state, tilemap_enable_w))
+ MCFG_SEIBU_CRTC_LAYER_SCROLL_CALLBACK(WRITE16(raiden2_state, tile_scroll_w))
MCFG_VIDEO_START_OVERRIDE(raiden2_state,raiden2)