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

Commit 81df8b81 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 7859607 from 4bb5ae9f to sc-v2-release

Change-Id: I750f40a73af04cb5250e0241c79e281a426b8fbc
parents 525a1b71 4bb5ae9f
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -67,13 +67,8 @@ float transformAngle(const ui::Transform& transform, float angleRadians) {
    transformedPoint.y -= origin.y;

    // Derive the transformed vector's clockwise angle from vertical.
    float result = atan2f(transformedPoint.x, -transformedPoint.y);
    if (result < -M_PI_2) {
        result += M_PI;
    } else if (result > M_PI_2) {
        result -= M_PI;
    }
    return result;
    // The return value of atan2f is in range [-pi, pi] which conforms to the orientation API.
    return atan2f(transformedPoint.x, -transformedPoint.y);
}

// Rotates the given point to the specified orientation. If the display width and height are