summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/edid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/edid.c b/src/lib/edid.c
index dd7c46ab2b..b2bd9b716a 100644
--- a/src/lib/edid.c
+++ b/src/lib/edid.c
@@ -475,6 +475,7 @@ detailed_block(struct edid *out, unsigned char *x, int in_extension)
* we have yet to see a case where that will happen.
*/
out->bpp = 32;
+
out->x_resolution = ALIGN(out->ha * ((out->bpp + 7) / 8),64) / (out->bpp/8);
out->y_resolution = out->va;
out->bytes_per_line = ALIGN(out->ha * ((out->bpp + 7) / 8),64);