cvs: php4 /ext/gd/libgd gdft.c
| From: | James Cox | Date: | Thu, 08 Aug 2002 15:02:15 +0000 |
| Subject: | cvs: php4 /ext/gd/libgd gdft.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-13215@lists.php.net to get a copy of this message | ||
imajes Thu Aug 8 11:02:15 2002 EDT
Modified files:
/php4/ext/gd/libgd gdft.c
Log:
Reverting patch. after more investigation this doesn't help in all that many cases, and with
Wez's better patch, sometimes degrade's quality.
Index: php4/ext/gd/libgd/gdft.c
diff -u php4/ext/gd/libgd/gdft.c:1.3 php4/ext/gd/libgd/gdft.c:1.4
--- php4/ext/gd/libgd/gdft.c:1.3 Thu Jul 11 00:36:22 2002
+++ php4/ext/gd/libgd/gdft.c Thu Aug 8 11:02:14 2002
@@ -509,12 +509,11 @@
is incorporate our knowledge of the percentage of this
pixel that is really "lit" by pushing the alpha value
up toward transparency in edge regions. */
- a->tweencolor = gdAlphaBlend(bg, gdTrueColorAlpha (
+ a->tweencolor = gdTrueColorAlpha (
gdTrueColorGetRed (fg),
gdTrueColorGetGreen (fg),
gdTrueColorGetBlue (fg),
- gdAlphaMax - ((gdAlphaMax - gdTrueColorGetAlpha (fg)) * pixel / NUMCOLORS))
- );
+ gdAlphaMax - ((gdAlphaMax - gdTrueColorGetAlpha (fg)) * pixel / NUMCOLORS)) );
}
else
{
@@ -604,7 +603,7 @@
}
else {
pixel = &im->pixels[y][x];
- if (tc_key.pixel == NUMCOLORS && gdTrueColorGetAlpha(fg) ==0)
+ if (tc_key.pixel == NUMCOLORS)
*pixel = fg;
else {
tc_key.bgcolor = *pixel;