mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user