fix(view): use array chunks for EDID timing descriptors

This commit is contained in:
Terra854 committed 2026-12-02 05:32:01 +08:00
1 parent 7a022d34bd
commit 91855750a9
1 file changed
+1 -1
@@ -152,7 +152,7 @@ pub(super) fn edid_width(edid: &[u8]) -> Option<f64> {
return None;
}
// EDID detailed timing descriptors carry millimetres, with the high bits shared at byte 14.
for timing in base.get(54..126)?.chunks_exact(18) {
for timing in base.get(54..126)?.as_chunks::<18>().0.iter() {
if timing.get(..2)? == [0, 0] {
continue;
}