From 7028e9aa3b38c47006f58ad6123e7918eaabb269 Mon Sep 17 00:00:00 2001 From: Ryan McGrath Date: Thu, 24 Feb 2011 01:46:16 -0800 Subject: [PATCH] Bring this over from AdvanceMAME... --- src/drivers/nv3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/nv3.c b/src/drivers/nv3.c index e998030..04314f5 100644 --- a/src/drivers/nv3.c +++ b/src/drivers/nv3.c @@ -878,7 +878,7 @@ static int CalcVClock for (P = 0; P <= P_MAX; P ++) { Freq = VClk << P; - if ((Freq >= 128000) && (Freq <= MAXVCLOCK)) + if ((Freq >= 128000 || P == P_MAX) && (Freq <= MAXVCLOCK)) { for (M = M_MIN; M <= M_MAX; M++) {