2 parents dd6ce70 + e7eceea commit aa37233Copy full SHA for aa37233
1 file changed
DisplayCAL/worker.py
@@ -5102,10 +5102,9 @@ def clipVidRGB(RGB, black_hack=True):
5102
lut.append([f"LUT_3D_SIZE {size:d}"])
5103
lut.append(["DOMAIN_MIN 0.0 0.0 0.0"])
5104
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)])
+ fmt = "{{:.{:d}f}}".format(len(str(maxval)[fp_offset + 1:]))
+ domain_max = "DOMAIN_MAX {} {} {}".format(*([fmt] * 3))
+ lut.append([domain_max.format(maxval, maxval, maxval)])
5109
lut.append([])
5110
for RGB_triplet in RGB_out:
5111
0 commit comments