Bugfix for 1D setup.

- incorrcet max segment length calc
This commit is contained in:
Blaz Kristan 2023-02-28 15:25:11 +01:00
parent 1ca4348ca0
commit 92d883db87
2 changed files with 545 additions and 544 deletions

View File

@ -1334,7 +1334,7 @@ function readState(s,command=false)
hasRGB |= !!(lc & 0x01);
hasWhite |= !!(lc & 0x02);
hasCCT |= !!(lc & 0x04);
let sLen = (s.seg[i].stop - s.seg[i].start)*(s.seg[i].stopY - s.seg[i].startY);
let sLen = (s.seg[i].stop - s.seg[i].start)*(s.seg[i].stopY?(s.seg[i].stopY - s.seg[i].startY):1);
segLmax = segLmax < sLen ? sLen : segLmax;
}
}

File diff suppressed because it is too large Load Diff