Skip to content

Commit

Permalink
nanosvg #148 "Remove unnecessary parentheses" memononen/nanosvg@93ce879
Browse files Browse the repository at this point in the history
  • Loading branch information
oehhar committed Jan 8, 2024
1 parent fa5e2e8 commit 511787a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generic/nanosvgrast.h
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@ static void nsvg__flattenCubicBez(NSVGrasterizer* r,

dx = x4 - x1;
dy = y4 - y1;
d2 = nsvg__absf(((x2 - x4) * dy - (y2 - y4) * dx));
d3 = nsvg__absf(((x3 - x4) * dy - (y3 - y4) * dx));
d2 = nsvg__absf((x2 - x4) * dy - (y2 - y4) * dx);
d3 = nsvg__absf((x3 - x4) * dy - (y3 - y4) * dx);

if ((d2 + d3)*(d2 + d3) < r->tessTol * (dx*dx + dy*dy)) {
nsvg__addPathPoint(r, x4, y4, type);
Expand Down

0 comments on commit 511787a

Please sign in to comment.