From 1d43f9cfe30a4b9992c78bb0007aaa8eaab505ce Mon Sep 17 00:00:00 2001 From: Roberto Fresca Date: Tue, 11 Feb 2014 14:55:33 +0000 Subject: [PATCH] Magic Card II: Override the wrong visible area and centered the game through a dedicated CRTC config interface [Roberto Fresca] --- src/mame/drivers/funworld.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/mame/drivers/funworld.c b/src/mame/drivers/funworld.c index 0abf6b8d0a9..11e4c662fb6 100644 --- a/src/mame/drivers/funworld.c +++ b/src/mame/drivers/funworld.c @@ -2689,6 +2689,21 @@ static MC6845_INTERFACE( mc6845_intf ) NULL /* update address callback */ }; +static MC6845_INTERFACE( magicrd2_mc6845_intf ) +{ + false, /* show border area */ + 0,-56,0,0, /* visarea adjustment */ + 4, /* 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 */ +}; + /************************** * Machine Drivers * @@ -2767,6 +2782,9 @@ static MACHINE_CONFIG_DERIVED( magicrd2, fw1stpal ) MCFG_CPU_VBLANK_INT_DRIVER("screen", funworld_state, nmi_line_pulse) MCFG_VIDEO_START_OVERRIDE(funworld_state, magicrd2) + + MCFG_DEVICE_REMOVE("crtc") + MCFG_MC6845_ADD("crtc", MC6845, "screen", MASTER_CLOCK/8, magicrd2_mc6845_intf) MCFG_SOUND_REPLACE("ay8910", AY8910, MASTER_CLOCK/8) /* 2MHz */ MCFG_SOUND_CONFIG(ay8910_intf)