From 5ba33f846129f3e6c0505b19f94634b24505e828 Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Sun, 26 Apr 2026 15:16:36 +0100 Subject: config/lua: init lua config manager, use lua if available (#13817) Adds a new lua config manager, which will automatically be used if there is a lua config present. --- src/helpers/cm/ICC.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/helpers/cm/ICC.cpp') diff --git a/src/helpers/cm/ICC.cpp b/src/helpers/cm/ICC.cpp index 00140c62..69a67c1d 100644 --- a/src/helpers/cm/ICC.cpp +++ b/src/helpers/cm/ICC.cpp @@ -91,7 +91,7 @@ static std::expected, std::string> readVCGT16(cmsHPR for (int c = 0; c < 3; ++c) { table.ch[c].resize(table.entries); for (uint16_t i = 0; i < table.entries; ++i) { - const uint8_t* p = raw.data() + tableOff + static_cast((c * table.entries + i) * 2); + const uint8_t* p = raw.data() + tableOff + sc((c * table.entries + i) * 2); table.ch[c][i] = bigEndianU16(p); // 0 ... 65535 } } @@ -232,7 +232,7 @@ static std::expected buildIcc3DLut(cmsHPROFILE profile, SImag } std::expected SImageDescription::fromICC(const std::filesystem::path& file) { - static auto PVCGTENABLED = CConfigValue("render:icc_vcgt_enabled"); + static auto PVCGTENABLED = CConfigValue("render:icc_vcgt_enabled"); std::error_code ec; if (!std::filesystem::exists(file, ec) || ec) -- cgit v1.2.3