diff options
Diffstat (limited to 'src/mame/drivers/pv1000.cpp')
-rw-r--r-- | src/mame/drivers/pv1000.cpp | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/mame/drivers/pv1000.cpp b/src/mame/drivers/pv1000.cpp index 560f05fbd21..5b3c23d7c52 100644 --- a/src/mame/drivers/pv1000.cpp +++ b/src/mame/drivers/pv1000.cpp @@ -134,8 +134,8 @@ void pv1000_sound_device::sound_stream_update(sound_stream &stream, stream_sampl class pv1000_state : public driver_device { public: - pv1000_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag), + pv1000_state(const machine_config &mconfig, device_type type, const char *tag) : + driver_device(mconfig, type, tag), m_maincpu(*this, "maincpu"), m_sound(*this, "pv1000_sound"), m_cart(*this, "cartslot"), @@ -143,7 +143,7 @@ public: m_gfxdecode(*this, "gfxdecode"), m_screen(*this, "screen"), m_palette(*this, "palette") - { } + { } void pv1000(machine_config &config); @@ -448,18 +448,17 @@ MACHINE_CONFIG_START(pv1000_state::pv1000) /* D65010G031 - Video & sound chip */ - MCFG_SCREEN_ADD( "screen", RASTER ) - MCFG_SCREEN_RAW_PARAMS( 17897725/3, 380, 0, 256, 262, 0, 192 ) - MCFG_SCREEN_UPDATE_DRIVER(pv1000_state, screen_update_pv1000) - MCFG_SCREEN_PALETTE("palette") + SCREEN(config, m_screen, SCREEN_TYPE_RASTER); + m_screen->set_raw(17897725/3, 380, 0, 256, 262, 0, 192); + m_screen->set_screen_update(FUNC(pv1000_state::screen_update_pv1000)); + m_screen->set_palette(m_palette); - MCFG_PALETTE_ADD_3BIT_BGR("palette") + PALETTE(config, m_palette, palette_device::BGR_3BIT); - MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_pv1000 ) + MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_pv1000) SPEAKER(config, "mono").front_center(); - MCFG_DEVICE_ADD( "pv1000_sound", PV1000, 17897725 ) - MCFG_SOUND_ROUTE( ALL_OUTPUTS, "mono", 1.00 ) + PV1000(config, m_sound, 17897725).add_route(ALL_OUTPUTS, "mono", 1.00); /* Cartridge slot */ MCFG_GENERIC_CARTSLOT_ADD("cartslot", generic_linear_slot, "pv1000_cart") |