Fixed pixel clock on S3 ViRGE.
This commit is contained in:
parent
964b20e820
commit
fa4ccece48
1 changed files with 1 additions and 1 deletions
|
|
@ -643,7 +643,7 @@ static void s3_virge_recalctimings(svga_t *svga)
|
||||||
int m = svga->seqregs[0x13] & 0x7f;
|
int m = svga->seqregs[0x13] & 0x7f;
|
||||||
double freq = (((double)m + 2) / (((double)n + 2) * (double)(1 << r))) * 14318184.0;
|
double freq = (((double)m + 2) / (((double)n + 2) * (double)(1 << r))) * 14318184.0;
|
||||||
|
|
||||||
svga->clock = cpuclock / freq;
|
svga->clock = (cpuclock * (float)(1ull << 32)) / freq;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue