Record all standard timings from EDID as modes, instead of just the first five.

This commit is contained in:
Adam Jackson 2006-09-14 18:41:59 -04:00
parent d89fee68d0
commit ced46e1777

View File

@ -174,7 +174,7 @@ DDCModesFromStandardTiming(int scrnIndex, struct std_timings *timing)
DisplayModePtr Modes = NULL, Mode = NULL;
int i;
for (i = 0; i < 5; i++)
for (i = 0; i < STD_TIMINGS; i++)
if (timing[i].hsize && timing[i].vsize && timing[i].refresh) {
Mode = xf86CVTMode(timing[i].hsize, timing[i].vsize,
timing[i].refresh, FALSE, FALSE);