Skip to content

Commit aa37233

Browse files
authored
Merge pull request #589 from vastunghia/fix-issue-577
Fix issue #577
2 parents dd6ce70 + e7eceea commit aa37233

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

DisplayCAL/worker.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5102,10 +5102,9 @@ def clipVidRGB(RGB, black_hack=True):
51025102
lut.append([f"LUT_3D_SIZE {size:d}"])
51035103
lut.append(["DOMAIN_MIN 0.0 0.0 0.0"])
51045104
fp_offset = str(maxval).find(".")
5105-
domain_max = "DOMAIN_MAX {} {} {}".format(
5106-
("{{:.{:d}f}}".format(len(str(maxval)[fp_offset + 1 :])),) * 3
5107-
)
5108-
lut.append([domain_max.format((maxval,) * 3)])
5105+
fmt = "{{:.{:d}f}}".format(len(str(maxval)[fp_offset + 1:]))
5106+
domain_max = "DOMAIN_MAX {} {} {}".format(*([fmt] * 3))
5107+
lut.append([domain_max.format(maxval, maxval, maxval)])
51095108
lut.append([])
51105109
for RGB_triplet in RGB_out:
51115110
lut.append([])

0 commit comments

Comments
 (0)