[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] master f5f969a8f 1/3: * src/sdf/ftsdf.c (get_min_distance_cu
From: |
Werner Lemberg |
Subject: |
[freetype2] master f5f969a8f 1/3: * src/sdf/ftsdf.c (get_min_distance_cubic): Fix C4701, typos. |
Date: |
Mon, 20 Feb 2023 23:33:32 -0500 (EST) |
branch: master
commit f5f969a8fe230a5355b62ebea45c91acf83e7645
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>
* src/sdf/ftsdf.c (get_min_distance_cubic): Fix C4701, typos.
---
src/sdf/ftsdf.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/sdf/ftsdf.c b/src/sdf/ftsdf.c
index 26a6d00e4..d8479af10 100644
--- a/src/sdf/ftsdf.c
+++ b/src/sdf/ftsdf.c
@@ -2375,7 +2375,7 @@
* 90~degrees with the curve. We solve this with the Newton-Raphson
* method.
*
- * (7) We first assume an arbitary value of factor `t`, which we then
+ * (7) We first assume an arbitrary value of factor `t`, which we then
* improve.
*
* ```
@@ -2688,7 +2688,7 @@
* 90~degree with curve. We solve this with the Newton-Raphson
* method.
*
- * (7) We first assume an arbitary value of factor `t`, which we then
+ * (7) We first assume an arbitrary value of factor `t`, which we then
* improve.
*
* ```
@@ -2718,8 +2718,9 @@
FT_Error error = FT_Err_Ok;
- FT_26D6_Vec aA, bB, cC, dD; /* A, B, C in the above comment */
- FT_16D16_Vec nearest_point; /* point on curve nearest to `point` */
+ FT_26D6_Vec aA, bB, cC, dD; /* A, B, C, D in the above comment */
+ FT_16D16_Vec nearest_point = { 0, 0 };
+ /* point on curve nearest to `point` */
FT_16D16_Vec direction; /* direction of curve at `nearest_point` */
FT_26D6_Vec p0, p1, p2, p3; /* control points of a cubic curve */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] master f5f969a8f 1/3: * src/sdf/ftsdf.c (get_min_distance_cubic): Fix C4701, typos.,
Werner Lemberg <=