Skip to content

Commit 23e29c3

Browse files
committed
1,修改bug
1 parent ffc5c8c commit 23e29c3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

library/src/main/java/com/flyjingfish/shapeimageviewlib/ShapeImageView.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,7 @@ private void drawBgShape(Canvas canvas) {
272272
y0 = height / 2 * percent + height / 2;
273273
} else if (angle <= 180) {
274274
float percent = (angle - 135) / 45;
275-
x0 = width / 2 + width / 2 * percent;
276-
;
275+
x0 = width / 2 + width / 2 * (1-percent);
277276
y0 = height;
278277
} else if (angle <= 225) {
279278
float percent = (angle - 180) / 45;
@@ -290,7 +289,6 @@ private void drawBgShape(Canvas canvas) {
290289
} else {
291290
float percent = (angle - 315) / 45;
292291
x0 = width / 2 * percent;
293-
;
294292
y0 = 0;
295293
}
296294
x1 = width - x0;

0 commit comments

Comments
 (0)