summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/ngp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/ngp.cpp')
-rw-r--r--src/mame/drivers/ngp.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mame/drivers/ngp.cpp b/src/mame/drivers/ngp.cpp
index 287b7c884e3..2d383252057 100644
--- a/src/mame/drivers/ngp.cpp
+++ b/src/mame/drivers/ngp.cpp
@@ -860,7 +860,9 @@ MACHINE_CONFIG_END
MACHINE_CONFIG_START(ngp_state::ngp)
ngp_common(config);
- MCFG_K1GE_ADD( "k1ge", 6.144_MHz_XTAL, "screen", WRITELINE( *this, ngp_state, ngp_vblank_pin_w ), WRITELINE( *this, ngp_state, ngp_hblank_pin_w ) )
+ K1GE(config , m_k1ge, 6.144_MHz_XTAL, "screen");
+ m_k1ge->vblank_callback().set(FUNC(ngp_state::ngp_vblank_pin_w));
+ m_k1ge->hblank_callback().set(FUNC(ngp_state::ngp_hblank_pin_w));
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_PALETTE("k1ge:palette")
@@ -878,7 +880,9 @@ MACHINE_CONFIG_END
MACHINE_CONFIG_START(ngp_state::ngpc)
ngp_common(config);
- MCFG_K2GE_ADD( "k1ge", 6.144_MHz_XTAL, "screen", WRITELINE( *this, ngp_state, ngp_vblank_pin_w ), WRITELINE( *this, ngp_state, ngp_hblank_pin_w ) )
+ K2GE(config , m_k1ge, 6.144_MHz_XTAL, "screen");
+ m_k1ge->vblank_callback().set(FUNC(ngp_state::ngp_vblank_pin_w));
+ m_k1ge->hblank_callback().set(FUNC(ngp_state::ngp_hblank_pin_w));
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_PALETTE("k1ge:palette")