[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] anuj-distance-field 69b1003 36/95: * src/sdf/ftsdfrend.c (sd
From: |
Anuj Verma |
Subject: |
[freetype2] anuj-distance-field 69b1003 36/95: * src/sdf/ftsdfrend.c (sdf_shape_dump): Use `%ld' to printf `signed long'. |
Date: |
Sun, 2 Aug 2020 01:10:31 -0400 (EDT) |
branch: anuj-distance-field
commit 69b1003c86d772ccfe524af45a16ece669c15768
Author: preversewharf45 <preverse45you@gmail.com>
Commit: Anuj Verma <anujv@iitbhilai.ac.in>
* src/sdf/ftsdfrend.c (sdf_shape_dump): Use `%ld' to printf `signed long'.
---
[GSoC]ChangeLog | 5 +++++
src/sdf/ftsdf.c | 36 ++++++++++++++++++------------------
2 files changed, 23 insertions(+), 18 deletions(-)
diff --git a/[GSoC]ChangeLog b/[GSoC]ChangeLog
index 8db1318..3bd5807 100644
--- a/[GSoC]ChangeLog
+++ b/[GSoC]ChangeLog
@@ -1,5 +1,10 @@
2020-07-04 Anuj Verma <anujv@iitbhilai.ac.in>
+ * src/sdf/ftsdfrend.c (sdf_shape_dump): Use `%ld' to
+ printf `signed long' otherwise it gives wrong output.
+
+2020-07-04 Anuj Verma <anujv@iitbhilai.ac.in>
+
* src/sdf/ftsdfrend.c (ft_sdf_render): Don't negate
unsigned integers.
diff --git a/src/sdf/ftsdf.c b/src/sdf/ftsdf.c
index c184487..94926c1 100644
--- a/src/sdf/ftsdf.c
+++ b/src/sdf/ftsdf.c
@@ -612,34 +612,34 @@
case SDF_EDGE_LINE:
FT_TRACE5(( " Edge Type: Line\n" ));
FT_TRACE5(( " ---------------\n" ));
- FT_TRACE5(( " Start Pos: %d, %d\n", edge->start_pos.x,
- edge->start_pos.y ));
- FT_TRACE5(( " End Pos : %d, %d\n", edge->end_pos.x,
- edge->end_pos.y ));
+ FT_TRACE5(( " Start Pos: %ld, %ld\n", edge->start_pos.x,
+ edge->start_pos.y ));
+ FT_TRACE5(( " End Pos : %ld, %ld\n", edge->end_pos.x,
+ edge->end_pos.y ));
total_lines++;
break;
case SDF_EDGE_CONIC:
FT_TRACE5(( " Edge Type: Conic Bezier\n" ));
FT_TRACE5(( " -----------------------\n" ));
- FT_TRACE5(( " Start Pos: %d, %d\n", edge->start_pos.x,
- edge->start_pos.y ));
- FT_TRACE5(( " Ctrl1 Pos: %d, %d\n", edge->control_a.x,
- edge->control_a.y ));
- FT_TRACE5(( " End Pos : %d, %d\n", edge->end_pos.x,
- edge->end_pos.y ));
+ FT_TRACE5(( " Start Pos: %ld, %ld\n", edge->start_pos.x,
+ edge->start_pos.y ));
+ FT_TRACE5(( " Ctrl1 Pos: %ld, %ld\n", edge->control_a.x,
+ edge->control_a.y ));
+ FT_TRACE5(( " End Pos : %ld, %ld\n", edge->end_pos.x,
+ edge->end_pos.y ));
total_conic++;
break;
case SDF_EDGE_CUBIC:
FT_TRACE5(( " Edge Type: Cubic Bezier\n" ));
FT_TRACE5(( " -----------------------\n" ));
- FT_TRACE5(( " Start Pos: %d, %d\n", edge->start_pos.x,
- edge->start_pos.y ));
- FT_TRACE5(( " Ctrl1 Pos: %d, %d\n", edge->control_a.x,
- edge->control_a.y ));
- FT_TRACE5(( " Ctrl2 Pos: %d, %d\n", edge->control_b.x,
- edge->control_b.y ));
- FT_TRACE5(( " End Pos : %d, %d\n", edge->end_pos.x,
- edge->end_pos.y ));
+ FT_TRACE5(( " Start Pos: %ld, %ld\n", edge->start_pos.x,
+ edge->start_pos.y ));
+ FT_TRACE5(( " Ctrl1 Pos: %ld, %ld\n", edge->control_a.x,
+ edge->control_a.y ));
+ FT_TRACE5(( " Ctrl2 Pos: %ld, %ld\n", edge->control_b.x,
+ edge->control_b.y ));
+ FT_TRACE5(( " End Pos : %ld, %ld\n", edge->end_pos.x,
+ edge->end_pos.y ));
total_cubic++;
break;
default:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] anuj-distance-field 69b1003 36/95: * src/sdf/ftsdfrend.c (sdf_shape_dump): Use `%ld' to printf `signed long'.,
Anuj Verma <=