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

Commit d67c9652 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 am: 27464739

am: 4070993a

Change-Id: I5f4ff20e04e0a3ea9614ab000dd939ab0113f958
parents c1fa92bf 4070993a
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;