diff options
author | Fabio Priuli <etabeta78@users.noreply.github.com> | 2014-05-01 08:36:28 +0000 |
---|---|---|
committer | Fabio Priuli <etabeta78@users.noreply.github.com> | 2014-05-01 08:36:28 +0000 |
commit | cc8edf5ac2faa4e0bd54c3b9715871870cd61cdf (patch) | |
tree | 6a686dca4d3758b6db3d5dcce1b5aca00b16f8bf /src/mame/drivers/luckgrln.c | |
parent | ea02fd06a5883097ad970c81219d9d8124002853 (diff) |
mc6845: converted to devcb2, delegates and inline configs. nw.
while at it, cleaned up the args of the mc6845 delegates as well
(no need to pass back and forth pieces of the driver class, now
that delegates belong to it as well)
even if I tested the changes extensively, I might have missed
something among the 177 source files using this, so please report
any regressions you see :)
Diffstat (limited to 'src/mame/drivers/luckgrln.c')
-rw-r--r-- | src/mame/drivers/luckgrln.c | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/src/mame/drivers/luckgrln.c b/src/mame/drivers/luckgrln.c index f8790404396..857f04f75b4 100644 --- a/src/mame/drivers/luckgrln.c +++ b/src/mame/drivers/luckgrln.c @@ -975,21 +975,6 @@ static GFXDECODE_START( luckgrln ) GFXDECODE_ENTRY( "reels", 0, tiles8x32_layout, 0, 64 ) GFXDECODE_END -static MC6845_INTERFACE( mc6845_intf ) -{ - false, /* show border area */ - 0,0,0,0, /* visarea adjustment */ - 8, /* number of pixels per video memory address */ - NULL, /* before pixel update callback */ - NULL, /* row update callback */ - NULL, /* after pixel update callback */ - DEVCB_NULL, /* callback for display state changes */ - DEVCB_NULL, /* callback for cursor state changes */ - DEVCB_NULL, /* HSYNC callback */ - DEVCB_NULL, /* VSYNC callback */ - NULL /* update address callback */ -}; - INTERRUPT_GEN_MEMBER(luckgrln_state::luckgrln_irq) { if(m_nmi_enable) @@ -1002,7 +987,9 @@ static MACHINE_CONFIG_START( luckgrln, luckgrln_state ) MCFG_CPU_IO_MAP(portmap) MCFG_CPU_VBLANK_INT_DRIVER("screen", luckgrln_state, luckgrln_irq) - MCFG_MC6845_ADD("crtc", H46505, "screen", 6000000/4, mc6845_intf) /* unknown clock, hand tuned to get ~60 fps */ + MCFG_MC6845_ADD("crtc", H46505, "screen", 6000000/4) /* unknown clock, hand tuned to get ~60 fps */ + MCFG_MC6845_SHOW_BORDER_AREA(false) + MCFG_MC6845_CHAR_WIDTH(8) MCFG_SCREEN_ADD("screen", RASTER) MCFG_SCREEN_REFRESH_RATE(60) @@ -1015,7 +1002,6 @@ static MACHINE_CONFIG_START( luckgrln, luckgrln_state ) MCFG_GFXDECODE_ADD("gfxdecode", "palette", luckgrln) MCFG_PALETTE_ADD("palette", 0x8000) - MCFG_SPEAKER_STANDARD_MONO("mono") MACHINE_CONFIG_END |