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:
@@ -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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user