summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatarGravatar Mamesick <mamesick@libero.it>2015-09-13 08:08:50 +0200
committerGravatarGravatar Mamesick <mamesick@libero.it>2015-09-13 08:08:50 +0200
commit6972e75f6218e8e8a824fc534ac62b03b394930b (patch) (github)
tree1f40a4bcb88e55cd660b095f6b4e547bfcb9b55e
parente92ac9e0fa8e99869894bea00589bbb526be30aa (diff)
downloadmame-6972e75f6218e8e8a824fc534ac62b03b394930b.tar.bz2
mame-6972e75f6218e8e8a824fc534ac62b03b394930b.zip
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
-rw-r--r--src/mame/drivers/prehisle.c8
1 files 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")