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

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

Merge "Avoid overflow in focus fudge calculation" am: 795d4a5a

am: e842e266

Change-Id: I0509b4debdf634075df7d8f63516d0b8e18e4b8c
parents 4a59e56a e842e266
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;
    }