cvs: php4(PHP_4_3) / NEWS /ext/gd gdttf.c
| From: | Derick Rethans | Date: | Sat, 08 Mar 2003 18:28:08 +0000 |
| Subject: | cvs: php4(PHP_4_3) / NEWS /ext/gd gdttf.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-19466@lists.php.net to get a copy of this message | ||
derick Sat Mar 8 13:28:08 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4/ext/gd gdttf.c
/php4 NEWS
Log:
- MFH: Fixed a bug in GD's truecolor TTF handling.
Index: php4/ext/gd/gdttf.c
diff -u php4/ext/gd/gdttf.c:1.16.10.1 php4/ext/gd/gdttf.c:1.16.10.2
--- php4/ext/gd/gdttf.c:1.16.10.1 Wed Mar 5 11:04:20 2003
+++ php4/ext/gd/gdttf.c Sat Mar 8 13:28:07 2003
@@ -2,7 +2,7 @@
/* */
/* John Ellson ellson@lucent.com */
-/* $Id: gdttf.c,v 1.16.10.1 2003/03/05 16:04:20 iliaa Exp $ */
+/* $Id: gdttf.c,v 1.16.10.2 2003/03/08 18:28:07 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);
Index: php4/NEWS
diff -u php4/NEWS:1.1247.2.128 php4/NEWS:1.1247.2.129
--- php4/NEWS:1.1247.2.128 Fri Mar 7 13:58:34 2003
+++ php4/NEWS Sat Mar 8 13:28:08 2003
@@ -24,6 +24,7 @@
--enable-memory-limit. (Andrey)
- Added improved JPEG 2000 support for getimagesize(). (Marcus, Adam Wright)
- Added XBM and WBMP support for getimagesize(). (Marcus)
+- Fixed a bug in GD's truecolor TTF handling. (Derick)
- Fixed several 64-bit problems. (Dave)
- Fixed several errors in hwapi extension. Objects weren't handled properly. (Uwe)
- Fixed bug #22585 (Do not terminate the script on minor errors). (Ilia)