Skip to content

Commit

Permalink
Issue #315 - RoundedBitmapDisplayer not display round corner correct…
Browse files Browse the repository at this point in the history
…ly(CenterCrop)
  • Loading branch information
nostra13 committed Jun 29, 2013
1 parent 9178cfa commit fc54a52
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ public static Bitmap roundCorners(Bitmap bitmap, ImageView imageView, int roundP
x = (bw - srcWidth) / 2;
y = 0;
}
width = Math.min(vw, bw);
height = Math.min(vh, bh);
width = srcWidth;// Math.min(vw, bw);
height = srcHeight;//Math.min(vh, bh);
srcRect = new Rect(x, y, x + srcWidth, y + srcHeight);
destRect = new Rect(0, 0, width, height);
break;
Expand Down

0 comments on commit fc54a52

Please sign in to comment.