diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2026-04-26 15:16:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-26 15:16:36 +0100 |
| commit | 5ba33f846129f3e6c0505b19f94634b24505e828 (patch) | |
| tree | aaacabe678006040c342935481a86607c66607fd /src/helpers/cm/ICC.cpp | |
| parent | 329b2b356dd92ac07f4e2aa69cbce82ee9ba9d19 (diff) | |
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.
Diffstat (limited to 'src/helpers/cm/ICC.cpp')
| -rw-r--r-- | src/helpers/cm/ICC.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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::optional<SVCGTTable16>, 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<ptrdiff_t>((c * table.entries + i) * 2); + const uint8_t* p = raw.data() + tableOff + sc<ptrdiff_t>((c * table.entries + i) * 2); table.ch[c][i] = bigEndianU16(p); // 0 ... 65535 } } @@ -232,7 +232,7 @@ static std::expected<void, std::string> buildIcc3DLut(cmsHPROFILE profile, SImag } std::expected<SImageDescription, std::string> SImageDescription::fromICC(const std::filesystem::path& file) { - static auto PVCGTENABLED = CConfigValue<Hyprlang::INT>("render:icc_vcgt_enabled"); + static auto PVCGTENABLED = CConfigValue<Config::INTEGER>("render:icc_vcgt_enabled"); std::error_code ec; if (!std::filesystem::exists(file, ec) || ec) |
