summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2009-10-02 15:32:53 -0400
committerAdam Jackson <ajax@redhat.com>2009-10-02 15:32:53 -0400
commitbd43914f8f614ca176afe0eebeccf38c8bb9d547 (patch)
treee2be737c5a7fcfb01778f1b0a2e167bf833d25de
parentb82197fdc81a988e48e82bc7d2e8032412223ca1 (diff)
Fix RB flags for detailed timings
-rw-r--r--edid.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/edid.c b/edid.c
index f8ba728..0ddcd0f 100644
--- a/edid.c
+++ b/edid.c
@@ -410,7 +410,11 @@ edid_do_detailed_mode(uint8_t *x)
if (x[17] & 0x80)
m->flags |= MT_FLAG_INTERLACED;
- /* XXX timings are reduced? */
+ if ((m->htotal - m->hdisplay) == 160 &&
+ (m->hsyncend - m->hdisplay) == 80 &&
+ (m->hsyncend - m->hsyncstart) == 32 &&
+ (m->vsyncstart - m->vdisplay) == 3)
+ m->flags |= MT_FLAG_REDUCED;
return m;
}