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

Commit 6f564d8b authored by Matt Casey's avatar Matt Casey Committed by android-build-merger
Browse files

Merge "Fix corner arc computation." into qt-dev

am: 953c62a9

Change-Id: I1ca9fe418863113558c525e495179d265254ecfa
parents 87f4e3e7 953c62a9
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -53,11 +53,12 @@ public final class CircularCornerPathRenderer extends CornerPathRenderer {
                break;
            case TOP_RIGHT:
                mPath.moveTo(mWidth, mCornerRadiusTop);
                mPath.arcTo(mWidth - mCornerRadiusTop, 0, mWidth, mCornerRadiusTop, 0, -90, true);
                mPath.arcTo(mWidth - mCornerRadiusTop * 2, 0, mWidth, mCornerRadiusTop * 2, 0, -90,
                        true);
                break;
            case TOP_LEFT:
                mPath.moveTo(mCornerRadiusTop, 0);
                mPath.arcTo(0, 0, mCornerRadiusTop, mCornerRadiusTop, 270, -90, true);
                mPath.arcTo(0, 0, mCornerRadiusTop * 2, mCornerRadiusTop * 2, 270, -90, true);
                break;
        }
        return mPath;