Message ID | 20221123102407.61827-1-contact@emersion.fr (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Add special case for 16:10 aspect ratio | expand |
diff --git a/edid-decode.cpp b/edid-decode.cpp index 96f095ce80de..a30165319cac 100644 --- a/edid-decode.cpp +++ b/edid-decode.cpp @@ -291,6 +291,11 @@ void calc_ratio(struct timings *t) } t->hratio = t->hact / d; t->vratio = t->vact / d; + + if (t->hratio == 8 && t->vratio == 5) { + t->hratio = 16; + t->vratio = 10; + } } std::string edid_state::dtd_type(unsigned cnt)