cvs: gd /libgd gdft.c

[email protected] ("Pierre-Alain Joye")
Newsgroups php.gd.cvs
Message-ID <cvspajoye1159398319@cvsserver>
pajoye		Wed Sep 27 23:05:19 2006 UTC

  Modified files:              
    /gd/libgd	gdft.c 
  Log:
  - #1, Initialize values this also provides a 5x speedup in the imagefttext.phpt
    test, because without this patch it never got cache hits (Nuno Lopes)
  
  
http://cvs.php.net/viewvc.cgi/gd/libgd/gdft.c?r1=1.24&r2=1.25&diff_format=u
Index: gd/libgd/gdft.c
diff -u gd/libgd/gdft.c:1.24 gd/libgd/gdft.c:1.25
--- gd/libgd/gdft.c:1.24	Wed Apr  5 15:55:57 2006
+++ gd/libgd/gdft.c	Wed Sep 27 23:05:18 2006
@@ -541,7 +541,7 @@
   pixel = a->pixel = b->pixel;
   bg = a->bgcolor = b->bgcolor;
   fg = a->fgcolor = b->fgcolor;
-  im = b->im;
+  im = a->im = b->im;
 
   /* if fg is specified by a negative color idx, then don't antialias */
   if (fg < 0)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.