summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/funworld.c
diff options
context:
space:
mode:
author Roberto Fresca <robertof@mamedev.org>2014-02-11 14:55:33 +0000
committer Roberto Fresca <robertof@mamedev.org>2014-02-11 14:55:33 +0000
commit1d43f9cfe30a4b9992c78bb0007aaa8eaab505ce (patch)
treecdfc803967afee71cf7e288883436c4f84b36eb1 /src/mame/drivers/funworld.c
parent0895e10f81d7cd4d679704b1a2e6cbc6e7a511c3 (diff)
Magic Card II: Override the wrong visible area and centered the
game through a dedicated CRTC config interface [Roberto Fresca]
Diffstat (limited to 'src/mame/drivers/funworld.c')
-rw-r--r--src/mame/drivers/funworld.c18
1 files changed, 18 insertions, 0 deletions
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)