mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Fixed incorrect assignment of min and max Y-fractions
Former-commit-id: d02351a62e2ff24d39892536bb1e2da7297a9778
This commit is contained in:
parent
b0ba91e5c5
commit
d50aec63f7
@ -68,8 +68,8 @@ LedString Hyperion::createLedString(const Json::Value& ledsConfig)
|
||||
const Json::Value& vscanConfig = ledConfig["vscan"];
|
||||
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.minY_frac = std::max(0.0, std::min(1.0, vscanConfig["maximum"].asDouble()));
|
||||
led.maxY_frac = std::max(0.0, std::min(1.0, vscanConfig["minimum"].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["maximum"].asDouble()));
|
||||
|
||||
ledString.leds().push_back(led);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user