diff options
| author | foobar <sniper@php.net> | 2003-05-01 23:50:08 +0000 |
|---|---|---|
| committer | foobar <sniper@php.net> | 2003-05-01 23:50:08 +0000 |
| commit | f60a08629111fe7e61e44f9950c0ecca6ed637bd (patch) | |
| tree | 3e169d073283a8d4bde07e3fcc7bcbe2312260db | |
| parent | b5a70a72d13a3951317466cb8a671eafffffc359 (diff) | |
| download | php-git-f60a08629111fe7e61e44f9950c0ecca6ed637bd.tar.gz | |
- Fixed bug #23427 (compile failure with GD 1.8.3)
| -rw-r--r-- | ext/gd/gdttf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/gd/gdttf.c b/ext/gd/gdttf.c index c7aa98f9ca..4ff659cada 100644 --- a/ext/gd/gdttf.c +++ b/ext/gd/gdttf.c @@ -744,9 +744,12 @@ gdttfchar(gdImage *im, int fg, font_t *font, if (tweencolorkey.pixel > 0) { x3 = x2 + col; if (x3 >= im->sx || x3 < 0) continue; +#if HAVE_LIBGD20 if (im->trueColor) { pixel = &im->tpixels[y3][x3]; - } else { + } else +#endif + { #if HAVE_LIBGD13 pixel = &im->pixels[y3][x3]; #else |
