mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
More fixes
Former-commit-id: 331ba604dba8aa16f9cf42c5827c8542502be545
This commit is contained in:
parent
a5a17776d4
commit
28f67871dc
@ -38,31 +38,6 @@
|
||||
"type":"object",
|
||||
"required":false,
|
||||
"properties": {
|
||||
"correctionValues" : {
|
||||
"type" : "object",
|
||||
"required" : false,
|
||||
"properties" : {
|
||||
"red" : {
|
||||
"type" : "integer",
|
||||
"required" : false,
|
||||
"minimum" : 0
|
||||
"maximum" : 255
|
||||
},
|
||||
"green" : {
|
||||
"type" : "integer",
|
||||
"required" : false,
|
||||
"minimum" : 0
|
||||
"maximum" : 255
|
||||
}
|
||||
"blue" : {
|
||||
"type" : "integer",
|
||||
"required" : false,
|
||||
"minimum" : 0
|
||||
"maximum" : 255
|
||||
}
|
||||
},
|
||||
"additionalProperties" : false
|
||||
},
|
||||
"hsv" : {
|
||||
"type" : "object",
|
||||
"required" : false,
|
||||
|
@ -409,6 +409,8 @@ void JsonClientConnection::handleServerInfoCommand(const Json::Value &)
|
||||
|
||||
transform["saturationGain"] = colorTransform->_hsvTransform.getSaturationGain();
|
||||
transform["valueGain"] = colorTransform->_hsvTransform.getValueGain();
|
||||
transform["saturationLGain"] = colorTransform->_hslTransform.getSaturationGain();
|
||||
transform["luminanceGain"] = colorTransform->_hslTransform.getLuminanceGain();
|
||||
|
||||
Json::Value & threshold = transform["threshold"];
|
||||
threshold.append(colorTransform->_rgbRedTransform.getThreshold());
|
||||
|
@ -216,12 +216,12 @@ void JsonConnection::setTransform(std::string * transformId, double * saturation
|
||||
transform["valueGain"] = *value;
|
||||
}
|
||||
|
||||
if (saturation != nullptr)
|
||||
if (saturationL != nullptr)
|
||||
{
|
||||
transform["saturationLGain"] = *saturationL;
|
||||
}
|
||||
|
||||
if (value != nullptr)
|
||||
if (luminance != nullptr)
|
||||
{
|
||||
transform["luminanceGain"] = *luminance;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user