summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/tonton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/tonton.cpp')
-rw-r--r--src/mame/drivers/tonton.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mame/drivers/tonton.cpp b/src/mame/drivers/tonton.cpp
index a00e66a7782..189f9c409b4 100644
--- a/src/mame/drivers/tonton.cpp
+++ b/src/mame/drivers/tonton.cpp
@@ -233,9 +233,11 @@ MACHINE_CONFIG_START(tonton_state::tonton)
/* video hardware */
- MCFG_V9938_ADD("v9938", "screen", VDP_MEM, MAIN_CLOCK)
- MCFG_V99X8_INTERRUPT_CALLBACK(INPUTLINE("maincpu", 0))
- MCFG_V99X8_SCREEN_ADD_NTSC("screen", "v9938", MAIN_CLOCK)
+ v9938_device &v9938(V9938(config, "v9938", MAIN_CLOCK));
+ v9938.set_screen_ntsc("screen");
+ v9938.set_vram_size(0x20000);
+ v9938.int_cb().set_inputline("maincpu", 0);
+ SCREEN(config, "screen", SCREEN_TYPE_RASTER);
MCFG_TICKET_DISPENSER_ADD("hopper", attotime::from_msec(HOPPER_PULSE), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_LOW )