Skip to content

Commit

Permalink
fix(android): fix radial gradient vertical center offset scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
msand committed Jan 4, 2020
1 parent 36c20b3 commit d5bddd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/src/main/java/com/horcrux/svg/Brush.java
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ void setupPaint(Paint paint, RectF pathBoundingBox, float scale, float opacity)
double ratio = ry / rx;

double cx = getVal(mPoints[4], width, scale, textSize) + offsetX;
double cy = getVal(mPoints[5], height, scale, textSize) + offsetY / ratio;
double cy = getVal(mPoints[5], height / ratio, scale, textSize) + offsetY / ratio;

// TODO: support focus point.
//double fx = PropHelper.fromRelative(mPoints[0], width, offsetX, scale);
Expand Down

0 comments on commit d5bddd5

Please sign in to comment.