Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Commit

Permalink
Fixes #8. center_crop and border bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
vinc3m1 committed Oct 19, 2015
1 parent d4793ae commit 3007d5e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ private void updateShaderMatrix() {
}

mShaderMatrix.setScale(scale, scale);
mShaderMatrix.postTranslate((int) (dx + 0.5f), (int) (dy + 0.5f));
mShaderMatrix.postTranslate((int) (dx + 0.5f) + mBorderWidth / 2,
(int) (dy + 0.5f) + mBorderWidth / 2);
break;

case CENTER_INSIDE:
Expand Down

0 comments on commit 3007d5e

Please sign in to comment.