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

Commit 15e5f9d4 authored by Michael Wright's avatar Michael Wright Committed by android-build-merger
Browse files

Merge "Decrease the inferred auto-brightness adjustment at the extremes." into...

Merge "Decrease the inferred auto-brightness adjustment at the extremes." into pi-dev am: b7185633
am: f68e5665

Change-Id: Ib3610c0c93e5c55f8d826c5f8cb60e1deb43d29e
parents e88605ca f68e5665
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -341,7 +341,7 @@ public abstract class BrightnessMappingStrategy {
        // Extreme edge cases: use a simpler heuristic, as proper gamma correction around the edges
        // affects the curve rather drastically.
        if (currentBrightness <= 0.1f || currentBrightness >= 0.9f) {
            adjustment = (desiredBrightness - currentBrightness) * 2;
            adjustment = (desiredBrightness - currentBrightness);
        // Edge case: darkest adjustment possible.
        } else if (desiredBrightness == 0) {
            adjustment = -1;