summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Kaiser <just.for.lkml@googlemail.com>2012-07-06 12:10:25 -0700
committerPeter Hutterer <peter.hutterer@who-t.net>2012-07-09 10:39:29 +1000
commit738e55ebbdf516a45b95761b815bed4e697dc726 (patch)
tree79063b3610f682292770c5a15edb2a9bb92b448b
parentf27fcb81c4a30cec899628e4bb3e300edbcebe4b (diff)
xfree86: EDID Est III parsing skips some modes
This loop needs to count from 7 to 0, not only from 7 to 1. The current code always skips the modes {1152, 864, 75, 0}, {1280, 1024, 85, 0}, {1400, 1050, 75, 0}, {1600, 1200, 70, 0} and {1920, 1200, 60, 0}. Signed-off-by: Torsten Kaiser <x11@ariolc.dyndns.org> Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Keith Packard <keithp@keithp.com> (cherry picked from commit 7c9d8cbd368cac53e7aed9308292614337db3be2)
-rw-r--r--hw/xfree86/modes/xf86EdidModes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xfree86/modes/xf86EdidModes.c b/hw/xfree86/modes/xf86EdidModes.c
index 47c169c5b..258ada5b4 100644
--- a/hw/xfree86/modes/xf86EdidModes.c
+++ b/hw/xfree86/modes/xf86EdidModes.c
@@ -738,7 +738,7 @@ DDCModesFromEstIII(unsigned char *est)
int i, j, m;
for (i = 0; i < 6; i++) {
- for (j = 7; j > 0; j--) {
+ for (j = 7; j >= 0; j--) {
if (est[i] & (1 << j)) {
m = (i * 8) + (7 - j);
if (EstIIIModes[m].w)