cvs: php4 /ext/gd gdttf.c
| From: | Derick Rethans | Date: | Sat, 08 Mar 2003 18:27:12 +0000 |
| Subject: | cvs: php4 /ext/gd gdttf.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-19465@lists.php.net to get a copy of this message | ||
derick Sat Mar 8 13:27:12 2003 EDT
Modified files:
/php4/ext/gd gdttf.c
Log:
- Fixed a bug in GD's truecolor TTF handling
Index: php4/ext/gd/gdttf.c
diff -u php4/ext/gd/gdttf.c:1.17 php4/ext/gd/gdttf.c:1.18
--- php4/ext/gd/gdttf.c:1.17 Tue Nov 19 14:55:54 2002
+++ php4/ext/gd/gdttf.c Sat Mar 8 13:27:12 2003
@@ -2,7 +2,7 @@
/* */
/* John Ellson ellson@lucent.com */
-/* $Id: gdttf.c,v 1.17 2002/11/19 19:55:54 iliaa Exp $ */
+/* $Id: gdttf.c,v 1.18 2003/03/08 18:27:12 derick Exp $ */
#include "php.h"
@@ -744,11 +744,15 @@
if (tweencolorkey.pixel > 0) {
x3 = x2 + col;
if (x3 >= im->sx || x3 < 0) continue;
+ if (im->trueColor) {
+ pixel = &im->tpixels[y3][x3];
+ } else {
#if HAVE_LIBGD13
- pixel = &im->pixels[y3][x3];
+ pixel = &im->pixels[y3][x3];
#else
- pixel = &im->pixels[x3][y3];
+ pixel = &im->pixels[x3][y3];
#endif
+ }
tweencolorkey.bgcolor = *pixel;
tweencolor = (tweencolor_t *)gdCacheGet(
tweenColorCache, &tweencolorkey);