EDID: Extend the HDTV hack to handle "1368x769"

Hate televisions so much.

Signed-off-by: Adam Jackson <ajax@redhat.com>
(cherry picked from commit ec98d7fc78)
This commit is contained in:
Adam Jackson 2009-09-21 10:23:16 -04:00 committed by Peter Hutterer
parent 9c87ede1d6
commit 30572be7c7
1 changed files with 4 additions and 2 deletions

View File

@ -498,8 +498,10 @@ DDCModesFromStandardTiming(struct std_timings *timing, ddc_quirk_t quirks,
vsize = timing[i].vsize;
refresh = timing[i].refresh;
/* HDTV hack. Hooray. */
if (hsize == 1360 && vsize == 765 && refresh == 60) {
/* HDTV hack, because you can't say 1366 */
if (refresh == 60 &&
((hsize == 1360 && vsize == 765) ||
(hsize == 1368 && vsize == 769))) {
Mode = xf86CVTMode(1366, 768, 60, FALSE, FALSE);
Mode->HDisplay = 1366;
Mode->VSyncStart--;