Skip to content

Commit fc54a52

Browse files
committed
Issue nostra13#315 - RoundedBitmapDisplayer not display round corner correctly(CenterCrop)
1 parent 9178cfa commit fc54a52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src/com/nostra13/universalimageloader/core/display/RoundedBitmapDisplayer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ public static Bitmap roundCorners(Bitmap bitmap, ImageView imageView, int roundP
127127
x = (bw - srcWidth) / 2;
128128
y = 0;
129129
}
130-
width = Math.min(vw, bw);
131-
height = Math.min(vh, bh);
130+
width = srcWidth;// Math.min(vw, bw);
131+
height = srcHeight;//Math.min(vh, bh);
132132
srcRect = new Rect(x, y, x + srcWidth, y + srcHeight);
133133
destRect = new Rect(0, 0, width, height);
134134
break;

0 commit comments

Comments
 (0)