fix max clock unit

max clock from EDID data is in MHz, while we need KHz to validate modes.
This commit is contained in:
liuhong 2008-02-05 10:54:10 +08:00 committed by Jesse Barnes
parent a56ef7aaa4
commit 4b5b6e7baa

View File

@ -1362,8 +1362,8 @@ xf86ProbeOutputModes (ScrnInfoPtr scrn, int maxX, int maxY)
if (sync_source == sync_default)
sync_source = sync_edid;
}
if (ranges->max_clock > max_clock)
max_clock = ranges->max_clock;
if (ranges->max_clock * 1000 > max_clock)
max_clock = ranges->max_clock * 1000;
}
}
}