Skip to content

Commit

Permalink
Fix standard timing decode for pre-1.3 blocks
Browse files Browse the repository at this point in the history
1.2 and earlier had those bits meaning 1:1 instead of 16:10.

Signed-off-by: Adam Jackson <ajax@redhat.com>
  • Loading branch information
nwnk committed Jun 7, 2012
1 parent ce77822 commit 821d144
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion edid-decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,10 @@ int main(int argc, char **argv)
x = (b1 + 31) * 8;
switch ((b2 >> 6) & 0x3) {
case 0x00:
y = x * 10 / 16;
if (claims_one_point_three)
y = x * 10 / 16;
else
y = x;
break;
case 0x01:
y = x * 3 / 4;
Expand Down

0 comments on commit 821d144

Please sign in to comment.