summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/expro02.cpp
diff options
context:
space:
mode:
authorGravatarGravatar Ivan Vangelista <mesgnet@yahoo.it>2018-11-23 17:50:48 +0100
committerGravatarGravatar Ivan Vangelista <mesgnet@yahoo.it>2018-11-23 17:50:48 +0100
commitebbd25c8665321f51ba35d573dbc3fc49dbf867f (patch) (github)
tree62e7857bdc11b712d6707a0ff3623377dc5ca373 /src/mame/drivers/expro02.cpp
parentc4fc5d7f675913bf5f62885080e68c7a328d7f43 (diff)
downloadmame-ebbd25c8665321f51ba35d573dbc3fc49dbf867f.tar.bz2
mame-ebbd25c8665321f51ba35d573dbc3fc49dbf867f.zip
mame/video: more macro removal (nw)
Diffstat (limited to 'src/mame/drivers/expro02.cpp')
-rw-r--r--src/mame/drivers/expro02.cpp23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/mame/drivers/expro02.cpp b/src/mame/drivers/expro02.cpp
index de18d1ef64d..07ad65ca712 100644
--- a/src/mame/drivers/expro02.cpp
+++ b/src/mame/drivers/expro02.cpp
@@ -934,15 +934,15 @@ MACHINE_CONFIG_START(expro02_state::expro02)
MCFG_PALETTE_FORMAT(GGGGGRRRRRBBBBBx)
MCFG_PALETTE_INIT_OWNER(expro02_state, expro02)
- MCFG_DEVICE_ADD("view2_0", KANEKO_TMAP, 0)
- MCFG_KANEKO_TMAP_GFX_REGION(1)
- MCFG_KANEKO_TMAP_OFFSET(0x5b, 0x8, 256, 224)
- MCFG_KANEKO_TMAP_GFXDECODE("gfxdecode")
+ KANEKO_TMAP(config, m_view2_0);
+ m_view2_0->set_gfx_region(1);
+ m_view2_0->set_offset(0x5b, 0x8, 256, 224);
+ m_view2_0->set_gfxdecode_tag("gfxdecode");
- MCFG_DEVICE_ADD_VU002_SPRITES
- MCFG_KANEKO16_SPRITE_PRIORITIES(8,8,8,8) // above all (not verified)
- MCFG_KANEKO16_SPRITE_OFFSETS(0, -0x40)
- MCFG_KANEKO16_SPRITE_GFXDECODE("gfxdecode")
+ KANEKO_VU002_SPRITE(config, m_kaneko_spr);
+ m_kaneko_spr->set_priorities(8,8,8,8); // above all (not verified)
+ m_kaneko_spr->set_offsets(0, -0x40);
+ m_kaneko_spr->set_gfxdecode_tag("gfxdecode");
MCFG_DEVICE_ADD("calc1_mcu", KANEKO_HIT, 0)
MCFG_KANEKO_HIT_TYPE(0)
@@ -970,17 +970,16 @@ MACHINE_CONFIG_START(expro02_state::comad)
MCFG_DEVICE_REMOVE("calc1_mcu")
- MCFG_DEVICE_MODIFY("view2_0")
// these values might not be correct, behavior differs from original boards
- MCFG_KANEKO_TMAP_INVERT_FLIP(1)
- MCFG_KANEKO_TMAP_OFFSET(-256, -216, 256, 224)
+ m_view2_0->set_invert_flip(1);
+ m_view2_0->set_offset(-256, -216, 256, 224);
subdevice<watchdog_timer_device>("watchdog")->set_time(attotime::from_seconds(0)); /* a guess, and certainly wrong */
MACHINE_CONFIG_END
MACHINE_CONFIG_START(expro02_state::comad_noview2)
comad(config);
- MCFG_DEVICE_REMOVE("view2_0")
+ config.device_remove("view2_0");
MCFG_GFXDECODE_MODIFY("gfxdecode", gfx_expro02_noview2)
MACHINE_CONFIG_END