summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/sfcbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/sfcbox.cpp')
-rw-r--r--src/mame/drivers/sfcbox.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/sfcbox.cpp b/src/mame/drivers/sfcbox.cpp
index 98c54a167ad..d9be50fe51f 100644
--- a/src/mame/drivers/sfcbox.cpp
+++ b/src/mame/drivers/sfcbox.cpp
@@ -492,9 +492,9 @@ MACHINE_CONFIG_START(sfcbox_state::sfcbox)
MCFG_SCREEN_RAW_PARAMS(DOTCLK_NTSC, SNES_HTOTAL, 0, SNES_SCR_WIDTH, SNES_VTOTAL_NTSC, 0, SNES_SCR_HEIGHT_NTSC)
MCFG_SCREEN_UPDATE_DRIVER( snes_state, screen_update )
- MCFG_DEVICE_ADD("ppu", SNES_PPU, 0)
- MCFG_SNES_PPU_OPENBUS_CB(READ8(*this, sfcbox_state, snes_open_bus_r))
- MCFG_VIDEO_SET_SCREEN("screen")
+ SNES_PPU(config, m_ppu, 0);
+ m_ppu->open_bus_callback().set([this] { return snes_open_bus_r(); }); // lambda because overloaded function name
+ m_ppu->set_screen("screen");
// SFCBOX
MCFG_SCREEN_ADD("osd", RASTER)