summaryrefslogtreecommitdiff
path: root/src/helpers/TransferFunction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers/TransferFunction.cpp')
-rw-r--r--src/helpers/TransferFunction.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/helpers/TransferFunction.cpp b/src/helpers/TransferFunction.cpp
index 935f77fe..074f4b19 100644
--- a/src/helpers/TransferFunction.cpp
+++ b/src/helpers/TransferFunction.cpp
@@ -26,7 +26,10 @@ std::string NTransferFunction::toString(eTF tf) {
return "";
}
-eTF NTransferFunction::fromConfig() {
+eTF NTransferFunction::fromConfig(bool useICC) {
+ if (useICC)
+ return TF_SRGB;
+
static auto PSDREOTF = CConfigValue<Hyprlang::STRING>("render:cm_sdr_eotf");
static auto sdrEOTF = NTransferFunction::fromString(*PSDREOTF);
static auto P = Event::bus()->m_events.config.reloaded.listen([]() { sdrEOTF = NTransferFunction::fromString(*PSDREOTF); });