[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freetype-devel
Subject:    [Devel] FT_Library_Version patch
From:       Huw Davies <huw () codeweavers ! com>
Date:       2002-07-23 10:52:43
[Download RAW message or body]

Hi,

This fixes a bug that stopped FT_Library_Version working if the output
variables were initialized to 0.

Huw.
-- 
Huw Davies
huw@codeweavers.com

["vers.diff" (text/plain)]

Index: ftobjs.c
===================================================================
RCS file: /cvs/freetype/freetype2/src/base/ftobjs.c,v
retrieving revision 1.139
diff -u -r1.139 ftobjs.c
--- ftobjs.c	2002/07/18 15:04:29	1.139
+++ ftobjs.c	2002/07/23 09:54:16
@@ -2429,13 +2429,13 @@
       patch = library->version_patch;
     }
 
-    if ( *amajor )
+    if ( amajor )
       *amajor = major;
 
-    if ( *aminor )
+    if ( aminor )
       *aminor = minor;
 
-    if ( *apatch )
+    if ( apatch )
       *apatch = patch;
   }
 

_______________________________________________
Devel mailing list
Devel@freetype.org
http://www.freetype.org/mailman/listinfo/devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic