From 6972e75f6218e8e8a824fc534ac62b03b394930b Mon Sep 17 00:00:00 2001 From: Mamesick Date: Sun, 13 Sep 2015 08:08:50 +0200 Subject: [PATCH] Attempt to fix MAMETESTERS bug #5939 05939: prehisle, gensitou, prehislek, prehisleu: Wrong speed. This is a guesswork but in any case it's better than use a standard refresh rate of 60.00 Hz. Values are taken from snk68.c driver which contains games with very similar (if not identical) hardware to prehisle. Notice that the new refresh rate is identical to NeoGeo and this should not be a surprise since we're talking about SNK manufacturer --- src/mame/drivers/prehisle.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mame/drivers/prehisle.c b/src/mame/drivers/prehisle.c index eb98e6b6683..7a384a033cb 100644 --- a/src/mame/drivers/prehisle.c +++ b/src/mame/drivers/prehisle.c @@ -205,10 +205,10 @@ static MACHINE_CONFIG_START( prehisle, prehisle_state ) /* video hardware */ MCFG_SCREEN_ADD("screen", RASTER) - MCFG_SCREEN_REFRESH_RATE(60) - MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) - MCFG_SCREEN_SIZE(32*8, 32*8) - MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) + // the screen parameters are guessed but should be accurate. They + // give a theoretical refresh rate of 59.1856Hz while the measured + // rate on a snk68.c with very similar hardware board is 59.16Hz. + MCFG_SCREEN_RAW_PARAMS(XTAL_24MHz/4, 384, 0, 256, 264, 16, 240) MCFG_SCREEN_UPDATE_DRIVER(prehisle_state, screen_update_prehisle) MCFG_SCREEN_PALETTE("palette")