freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] gsoc-anurag-2023 382949cde 2/3: Fix render


From: Werner Lemberg
Subject: [freetype2] gsoc-anurag-2023 382949cde 2/3: Fix render
Date: Thu, 28 Sep 2023 16:17:26 -0400 (EDT)

branch: gsoc-anurag-2023
commit 382949cdea40e7d9b389e9175f1c7d9c2b5025ce
Author: Anurag Thakur <anurag105csec21@bpitindia.edu.in>
Commit: Anurag Thakur <anurag105csec21@bpitindia.edu.in>

    Fix render
---
 src/base/ftobjs.c   | 16 ++++++++--------
 src/dense/ftdense.c |  8 ++++----
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index effb565eb..931fee9a9 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -2634,10 +2634,10 @@
 
 
       FT_PreLine pl  = malloc(sizeof(FT_PreLineRec));
-            pl->x1 = v_start.x/64;
-            pl->y1 = v_start.y/64;
-            pl->x2 = v_start.x/64;
-            pl->y2 = v_start.y/64;
+            pl->x1 = v_start.x;
+            pl->y1 = v_start.y;
+            pl->x2 = v_start.x;
+            pl->y2 = v_start.y;
             pl->next = NULL;
             pl->ismove = 1;
 
@@ -2674,8 +2674,8 @@
             FT_PreLine pl  = malloc(sizeof(FT_PreLineRec));
             pl->x1 = ptr->x2;
             pl->y1 = ptr->y2;
-            pl->x2 = vec.x/64;
-            pl->y2 = vec.y/64;
+            pl->x2 = vec.x;
+            pl->y2 = vec.y;
             pl->next = NULL;
             pl->ismove = 0;
             ptr->next = pl;
@@ -2696,8 +2696,8 @@
       FT_PreLine pl2  = malloc(sizeof(FT_PreLineRec));
       pl2->x1 = ptr->x2;
       pl2->y1 = ptr->y2;
-      pl2->x2 = v_start.x/64;
-      pl2->y2 = v_start.y/64;
+      pl2->x2 = v_start.x;
+      pl2->y2 = v_start.y;
       pl2->next = NULL;
       pl->ismove = 0;
       ptr->next = pl2;
diff --git a/src/dense/ftdense.c b/src/dense/ftdense.c
index 4d3bc386a..66763004d 100644
--- a/src/dense/ftdense.c
+++ b/src/dense/ftdense.c
@@ -439,10 +439,10 @@ dense_render_glyph( dense_worker* worker, const 
FT_Bitmap* target, FT_PreLine pl
   FT_Error error = dense_move_to(&point1, worker);
   while (pl!=NULL)
   {
-    point1.x = pl->x1/4;
-    point1.y = pl->y1/4;
-    point2.x = pl->x2/4;
-    point2.y = pl->y2/4;
+    point1.x = pl->x1;
+    point1.y = pl->y1;
+    point2.x = pl->x2;
+    point2.y = pl->y2;
 
     if(pl->ismove){
       dense_move_to(&point2, worker);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]