Skip to content

Commit

Permalink
Fix unblurred edges glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimezis committed Jul 11, 2016
1 parent dccfec5 commit a5c7059
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ private void allocateBitmap(int measuredWidth, int measuredHeight) {
int scaledWidth = roundSize(nonRoundedScaledWidth);
int scaledHeight = roundSize(nonRoundedScaledHeight);

roundingHeightScaleFactor = (float) scaledHeight / nonRoundedScaledHeight;
roundingWidthScaleFactor = (float) scaledWidth / nonRoundedScaledWidth;
roundingHeightScaleFactor = (float) nonRoundedScaledHeight / scaledHeight;
roundingWidthScaleFactor = (float) nonRoundedScaledWidth / scaledWidth;

internalBitmap = Bitmap.createBitmap(scaledWidth, scaledHeight, blurAlgorithm.getSupportedBitmapConfig());
}
Expand Down

0 comments on commit a5c7059

Please sign in to comment.