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

Commit e842e266 authored by Niklas Brunlid's avatar Niklas Brunlid Committed by android-build-merger
Browse files

Merge "Avoid overflow in focus fudge calculation"

am: 795d4a5a

Change-Id: Id15034f5a02f93a4fe8487b5516993a9bf6f4ada
parents e57c02e8 795d4a5a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -530,7 +530,7 @@ public class FocusFinder {
     * axis distances.  Warning: this fudge factor is finely tuned, be sure to
     * run all focus tests if you dare tweak it.
     */
    int getWeightedDistanceFor(int majorAxisDistance, int minorAxisDistance) {
    long getWeightedDistanceFor(long majorAxisDistance, long minorAxisDistance) {
        return 13 * majorAxisDistance * majorAxisDistance
                + minorAxisDistance * minorAxisDistance;
    }