More fixes

Former-commit-id: 331ba604dba8aa16f9cf42c5827c8542502be545
This commit is contained in:
AEtHeLsYn 2016-03-13 13:05:47 +01:00
parent a5a17776d4
commit 28f67871dc
3 changed files with 4 additions and 27 deletions

View File

@ -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,

View File

@ -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());

View File

@ -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;
}