Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9037dab authored by Romain Guy's avatar Romain Guy
Browse files

Don't apply the OECF twice to multi-stop gradients

Test: Manual

Change-Id: Icd65d906df2f0a059373edb8c6d55fe378c92f92
parent f60cc200
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -198,7 +198,7 @@ void GradientCache::mixFloats(const FloatColor& start, const FloatColor& end,
        float amount, uint8_t*& dst) const {
    float oppAmount = 1.0f - amount;
    float* d = (float*) dst;
#if ANDROID_LINEAR_BLENDING_ENABLED
#ifdef ANDROID_ENABLE_LINEAR_BLENDING
    *d++ = start.r * oppAmount + end.r * amount;
    *d++ = start.g * oppAmount + end.g * amount;
    *d++ = start.b * oppAmount + end.b * amount;