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

Commit 2c0a36a1 authored by Doris Liu's avatar Doris Liu Committed by Android (Google) Code Review
Browse files

Merge "Rounding per-channel interpolation in ArgbEvaluator to closest integer"

parents 50b2c244 d0ff41c4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -85,6 +85,6 @@ public class ArgbEvaluator implements TypeEvaluator {
        g = (float) Math.pow(g, 1.0 / 2.2) * 255.0f;
        b = (float) Math.pow(b, 1.0 / 2.2) * 255.0f;

        return ((int) a) << 24 | ((int) r) << 16 | ((int) g) << 8 | (int) b;
        return Math.round(a) << 24 | Math.round(r) << 16 | Math.round(g) << 8 | Math.round(b);
    }
}
 No newline at end of file