cvs: php-src(PHP_4_3) / NEWS /ext/gd/libgd gd.c

From: Date: Tue, 04 Nov 2003 01:56:08 +0000
Subject: cvs: php-src(PHP_4_3) / NEWS /ext/gd/libgd gd.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-24419@lists.php.net to get a copy of this message
iliaa Mon Nov 3 20:56:08 2003 EDT Modified files: (Branch: PHP_4_3) /php-src NEWS /php-src/ext/gd/libgd gd.c Log: MFH: Fixed bug #26097 (gdImageColorClosestAlpha() returns incorrect results). Index: php-src/NEWS diff -u php-src/NEWS:1.1247.2.453 php-src/NEWS:1.1247.2.454 --- php-src/NEWS:1.1247.2.453 Mon Nov 3 20:40:22 2003 +++ php-src/NEWS Mon Nov 3 20:56:06 2003 @@ -3,6 +3,8 @@ ?? ??? 2003, Version 4.3.5 - Fixed header handler in NSAPI SAPI module (header->replace was ignored, send_default_content_type now sends value from php.ini). (Uwe Schindler) +- Fixed bug #26097 (gdImageColorClosestAlpha() returns incorrect results). + (sprice at wisc dot edu, Ilia) - Fixed bug #26042 (memory leak if mcrypt_generic_deinit() is not called after every mcrypt_generic_init() call). (Ilia) - Fixed bug #26025 (Segfault on glob() without GLOB_NOCHECK or GLOB_NOMAGIC Index: php-src/ext/gd/libgd/gd.c diff -u php-src/ext/gd/libgd/gd.c:1.24.2.22 php-src/ext/gd/libgd/gd.c:1.24.2.23 --- php-src/ext/gd/libgd/gd.c:1.24.2.22 Mon Sep 8 17:01:37 2003 +++ php-src/ext/gd/libgd/gd.c Mon Nov 3 20:56:07 2003 @@ -255,7 +255,7 @@ gd = im->green[i] - g; bd = im->blue[i] - b; /* gd 2.02: whoops, was - b (thanks to David Marwood) */ - ad = im->blue[i] - a; + ad = im->alpha[i] - a; dist = rd * rd + gd * gd + bd * bd + ad * ad; if (first || (dist < mindist)) { mindist = dist;

« previous php.cvs (#24419) next »