Skip to content

Commit

Permalink
fix(android): mask height and vertical position calculation
Browse files Browse the repository at this point in the history
fixes #1097
  • Loading branch information
msand committed Sep 28, 2019
1 parent 1427dd6 commit 74b42a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions android/src/main/java/com/horcrux/svg/RenderableView.java
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,9 @@ void render(Canvas canvas, Paint paint, float opacity) {

// Clip to mask bounds and render the mask
float maskX = (float) relativeOnWidth(mask.mX);
float maskY = (float) relativeOnWidth(mask.mY);
float maskY = (float) relativeOnHeight(mask.mY);
float maskWidth = (float) relativeOnWidth(mask.mW);
float maskHeight = (float) relativeOnWidth(mask.mH);
float maskHeight = (float) relativeOnHeight(mask.mH);
maskCanvas.clipRect(maskX, maskY, maskWidth, maskHeight);

Paint maskPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
Expand Down

0 comments on commit 74b42a7

Please sign in to comment.