Fixed incorrect assignment of min and max Y-fractions

Former-commit-id: d02351a62e2ff24d39892536bb1e2da7297a9778
This commit is contained in:
T. van der Zwan 2013-10-16 20:53:45 +00:00
parent b0ba91e5c5
commit d50aec63f7

View File

@ -68,8 +68,8 @@ LedString Hyperion::createLedString(const Json::Value& ledsConfig)
const Json::Value& vscanConfig = ledConfig["vscan"]; const Json::Value& vscanConfig = ledConfig["vscan"];
led.minX_frac = std::max(0.0, std::min(1.0, hscanConfig["minimum"].asDouble())); led.minX_frac = std::max(0.0, std::min(1.0, hscanConfig["minimum"].asDouble()));
led.maxX_frac = std::max(0.0, std::min(1.0, hscanConfig["maximum"].asDouble())); led.maxX_frac = std::max(0.0, std::min(1.0, hscanConfig["maximum"].asDouble()));
led.minY_frac = std::max(0.0, std::min(1.0, vscanConfig["maximum"].asDouble())); led.minY_frac = std::max(0.0, std::min(1.0, vscanConfig["minimum"].asDouble()));
led.maxY_frac = std::max(0.0, std::min(1.0, vscanConfig["minimum"].asDouble())); led.maxY_frac = std::max(0.0, std::min(1.0, vscanConfig["maximum"].asDouble()));
ledString.leds().push_back(led); ledString.leds().push_back(led);
} }