add 10bit support to displays

This commit is contained in:
vaxerski
2022-10-27 13:26:47 +01:00
parent 28c81fc71e
commit 7d6ccca695
5 changed files with 34 additions and 1 deletions

View File

@@ -532,6 +532,9 @@ void CConfigManager::handleMonitor(const std::string& command, const std::string
if (ARGS[argno] == "mirror") {
newrule.mirrorOf = ARGS[argno + 1];
argno++;
} else if (ARGS[argno] == "bitdepth") {
newrule.enable10bit = ARGS[argno + 1] == "10";
argno++;
} else {
Debug::log(ERR, "Config error: invalid monitor syntax");
parseError = "invalid syntax at \"" + ARGS[argno] + "\"";