diff options
| author | Derick Rethans <derick@php.net> | 2003-03-08 18:27:12 +0000 |
|---|---|---|
| committer | Derick Rethans <derick@php.net> | 2003-03-08 18:27:12 +0000 |
| commit | 1b9ee1a8eaa0bc8bc01f572d73a8a1edb9eeb7f2 (patch) | |
| tree | c9ed2fef0a100f019169d74eb35c7d93d1643bda | |
| parent | d0fbdef4198da7984ef8bd3ced5c5f0a09344035 (diff) | |
| download | php-git-1b9ee1a8eaa0bc8bc01f572d73a8a1edb9eeb7f2.tar.gz | |
- Fixed a bug in GD's truecolor TTF handling
| -rw-r--r-- | ext/gd/gdttf.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/gd/gdttf.c b/ext/gd/gdttf.c index 84c73c0efa..c7aa98f9ca 100644 --- a/ext/gd/gdttf.c +++ b/ext/gd/gdttf.c @@ -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); |
