cvt: Allow multiple-of-60Hz refresh rates for reduced blanking.

Doing so generates the same timings as given in the DMT spec for
120Hz RB, so we should be set there.  Other rates might be legal
too but why push our luck.
This commit is contained in:
Adam Jackson 2009-06-09 16:20:11 -04:00
parent 2a035600e6
commit 746e7b22e1

View File

@ -261,11 +261,14 @@ main (int argc, char *argv[])
HDisplay += 8;
}
if (Reduced && (VRefresh != 60.0)) {
fprintf(stderr, "\nERROR: 60Hz refresh rate required for reduced"
" blanking.\n");
PrintUsage(argv[0]);
return 0;
if (Reduced) {
if ((VRefresh / 60.0) != floor(VRefresh / 60.0)) {
fprintf(stderr,
"\nERROR: Multiple of 60Hz refresh rate required for "
" reduced blanking.\n");
PrintUsage(argv[0]);
return 0;
}
}
IsCVT = CVTCheckStandard(HDisplay, VDisplay, VRefresh, Reduced, Verbose);