mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
fix(view): use array chunks for EDID timing descriptors
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user