freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] master aee1fd3: Cosmetic zeros.


From: Werner Lemberg
Subject: [freetype2] master aee1fd3: Cosmetic zeros.
Date: Fri, 3 Sep 2021 22:13:54 -0400 (EDT)

branch: master
commit aee1fd3bb8ad78e5aed4ce5e95a36757de888b68
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>

    Cosmetic zeros.
---
 src/base/ftglyph.c  | 4 ++--
 src/base/ftstream.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/base/ftglyph.c b/src/base/ftglyph.c
index 1622f96..e2c6f73 100644
--- a/src/base/ftglyph.c
+++ b/src/base/ftglyph.c
@@ -585,7 +585,7 @@
 #if 1
     /* if `origin' is set, translate the glyph image */
     if ( origin )
-      FT_Glyph_Transform( glyph, 0, origin );
+      FT_Glyph_Transform( glyph, NULL, origin );
 #else
     FT_UNUSED( origin );
 #endif
@@ -603,7 +603,7 @@
 
       v.x = -origin->x;
       v.y = -origin->y;
-      FT_Glyph_Transform( glyph, 0, &v );
+      FT_Glyph_Transform( glyph, NULL, &v );
     }
 #endif
 
diff --git a/src/base/ftstream.c b/src/base/ftstream.c
index d494efc..5992998 100644
--- a/src/base/ftstream.c
+++ b/src/base/ftstream.c
@@ -61,7 +61,7 @@
 
     if ( stream->read )
     {
-      if ( stream->read( stream, pos, 0, 0 ) )
+      if ( stream->read( stream, pos, NULL, 0 ) )
       {
         FT_ERROR(( "FT_Stream_Seek:"
                    " invalid i/o; pos = 0x%lx, size = 0x%lx\n",



reply via email to

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