diff options
| author | Pierre Joye <pajoye@php.net> | 2002-12-04 02:48:23 +0000 |
|---|---|---|
| committer | Pierre Joye <pajoye@php.net> | 2002-12-04 02:48:23 +0000 |
| commit | 00881ea504b75550a817aba77586b75bad58be92 (patch) | |
| tree | d8ad5c6bd686428fc2ef27d972e24f6c77fedf18 /ext | |
| parent | e8e2420042c0bc593f15a13ea11b31e0efa63952 (diff) | |
| download | php-git-00881ea504b75550a817aba77586b75bad58be92.tar.gz | |
Fix imagegd stdoutput
Typo 256 colors
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/gd/gd.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 00b7746432..7b546420d9 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -1591,7 +1591,7 @@ static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char break; case PHP_GDIMG_TYPE_GD: if(im->trueColor){ - gdImageTrueColorToPalette(im,1,255); + gdImageTrueColorToPalette(im,1,256); } (*func_p)(im, fp); break; @@ -1626,6 +1626,12 @@ static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char } (*func_p)(im, q, tmp); break; + case PHP_GDIMG_TYPE_GD: + if(im->trueColor){ + gdImageTrueColorToPalette(im,1,256); + } + (*func_p)(im, tmp); + break; default: (*func_p)(im, tmp); break; |
