1
0
mirror of https://github.com/php/php-src.git synced 2026-04-30 03:33:17 +02:00

- MFH: Fixed a bug in GD's truecolor TTF handling.

This commit is contained in:
Derick Rethans
2003-03-08 18:28:08 +00:00
parent 20c9225f64
commit a758078ce5
2 changed files with 7 additions and 2 deletions
+1
View File
@@ -24,6 +24,7 @@ PHP 4 NEWS
--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)
+6 -2
View File
@@ -744,11 +744,15 @@ gdttfchar(gdImage *im, int fg, font_t *font,
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);