diff options
author | oehhar <harald.oehlmann@elmicron.de> | 2024-01-08 11:08:22 (GMT) |
---|---|---|
committer | oehhar <harald.oehlmann@elmicron.de> | 2024-01-08 11:08:22 (GMT) |
commit | 3df7a0ff7653cafb8cfbba58cf29067155337ea8 (patch) | |
tree | c457c93bbc16d13a2d8a2987ba2d1f1c5c94164d | |
parent | 26ef4f3eec6ae3288d61745b9af0bbcbb37302e7 (diff) | |
download | tk-3df7a0ff7653cafb8cfbba58cf29067155337ea8.zip tk-3df7a0ff7653cafb8cfbba58cf29067155337ea8.tar.gz tk-3df7a0ff7653cafb8cfbba58cf29067155337ea8.tar.bz2 |
nanosvg #148 "Remove unnecessary parentheses" https://github.com/memononen/nanosvg/commit/93ce879dc4c04a3ef1758428ec80083c38610b1f
-rw-r--r-- | generic/nanosvgrast.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/nanosvgrast.h b/generic/nanosvgrast.h index 9bf724b..b4fac60 100644 --- a/generic/nanosvgrast.h +++ b/generic/nanosvgrast.h @@ -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); |