Skip to content

Commit

Permalink
Merge pull request #148 from shlyakpavel/patch-2
Browse files Browse the repository at this point in the history
Remove unnecessary parentheses
  • Loading branch information
memononen authored Dec 29, 2023
2 parents 8a29233 + f4f272a commit 93ce879
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nanosvgrast.h
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,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 93ce879

Please sign in to comment.