summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2002-12-04 02:48:23 +0000
committerPierre Joye <pajoye@php.net>2002-12-04 02:48:23 +0000
commit00881ea504b75550a817aba77586b75bad58be92 (patch)
treed8ad5c6bd686428fc2ef27d972e24f6c77fedf18 /ext
parente8e2420042c0bc593f15a13ea11b31e0efa63952 (diff)
downloadphp-git-00881ea504b75550a817aba77586b75bad58be92.tar.gz
Fix imagegd stdoutput
Typo 256 colors
Diffstat (limited to 'ext')
-rw-r--r--ext/gd/gd.c8
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;