xfree86: finish removing numTimings in xf86ValidateModes()
Finishes the work started in commitcd0d4c1bb5
to remove checks for the variable that never varied from 0 after the code to change it was removed by commit511c60bc73
in 2006 (xorg-server-1.2.0). Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
parent
4422177d26
commit
6d468c68d6
|
@ -1352,8 +1352,6 @@ xf86ValidateModes(ScrnInfoPtr scrp, DisplayModePtr availModes,
|
|||
int saveType;
|
||||
PixmapFormatRec *BankFormat;
|
||||
ClockRangePtr cp;
|
||||
const int numTimings = 0;
|
||||
range vrefresh[MAX_VREFRESH];
|
||||
Bool inferred_virtual = FALSE;
|
||||
|
||||
DebugF
|
||||
|
@ -1416,18 +1414,9 @@ xf86ValidateModes(ScrnInfoPtr scrp, DisplayModePtr availModes,
|
|||
|
||||
type = "";
|
||||
if (scrp->monitor->nVrefresh <= 0) {
|
||||
if (numTimings > 0) {
|
||||
scrp->monitor->nVrefresh = numTimings;
|
||||
for (i = 0; i < numTimings; i++) {
|
||||
scrp->monitor->vrefresh[i].lo = vrefresh[i].lo;
|
||||
scrp->monitor->vrefresh[i].hi = vrefresh[i].hi;
|
||||
}
|
||||
}
|
||||
else {
|
||||
scrp->monitor->vrefresh[0].lo = 50;
|
||||
scrp->monitor->vrefresh[0].hi = 70;
|
||||
scrp->monitor->nVrefresh = 1;
|
||||
}
|
||||
scrp->monitor->vrefresh[0].lo = 50;
|
||||
scrp->monitor->vrefresh[0].hi = 70;
|
||||
scrp->monitor->nVrefresh = 1;
|
||||
type = "default ";
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue