cvs: php4 /ext/gd gd.c

From: Date: Wed, 04 Dec 2002 02:48:23 +0000
Subject: cvs: php4 /ext/gd gd.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-16883@lists.php.net to get a copy of this message
pajoye Tue Dec 3 21:48:23 2002 EDT Modified files: /php4/ext/gd gd.c Log: Fix imagegd stdoutput Typo 256 colors Index: php4/ext/gd/gd.c diff -u php4/ext/gd/gd.c:1.230 php4/ext/gd/gd.c:1.231 --- php4/ext/gd/gd.c:1.230 Tue Dec 3 21:37:21 2002 +++ php4/ext/gd/gd.c Tue Dec 3 21:48:23 2002 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: gd.c,v 1.230 2002/12/04 02:37:21 pajoye Exp $ */ +/* $Id: gd.c,v 1.231 2002/12/04 02:48:23 pajoye Exp $ */ /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, Cold Spring Harbor Labs. */ @@ -1591,7 +1591,7 @@ 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 @@ } (*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;

« previous php.cvs (#16883) next »