Fixed frequency control on ViRGE/DX
This commit is contained in:
parent
008c795834
commit
dc7bf986d6
1 changed files with 1 additions and 1 deletions
|
|
@ -552,7 +552,7 @@ static void s3_virge_recalctimings(svga_t *svga)
|
||||||
if (((svga->miscout >> 2) & 3) == 3)
|
if (((svga->miscout >> 2) & 3) == 3)
|
||||||
{
|
{
|
||||||
int n = svga->seqregs[0x12] & 0x1f;
|
int n = svga->seqregs[0x12] & 0x1f;
|
||||||
int r = (svga->seqregs[0x12] >> 5) & 3;
|
int r = (svga->seqregs[0x12] >> 5) & (virge->is_375 ? 7 : 3);
|
||||||
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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue