[instancer/L4] Add a comment from upstream

This commit is contained in:
Behdad Esfahbod 2023-06-21 18:30:31 -06:00
parent 244f3224b9
commit 32a9ac2e3a

View file

@ -253,6 +253,8 @@ _solve (Triple tent, Triple axisLimit, bool negative = false)
* axisDef axisMax
*/
float newUpper = peak + (1 - gain) * (upper - peak);
// I feel like the first condition is always true because
// outGain >= gain.
if (axisMax <= newUpper && newUpper <= axisDef + (axisMax - axisDef) * 2)
{
upper = newUpper;