summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Cox <imajes@php.net>2002-08-08 15:02:14 +0000
committerJames Cox <imajes@php.net>2002-08-08 15:02:14 +0000
commit66e78004c1018c172d12af29785ee599ebb0cc71 (patch)
tree6c04079a164273c0050de079f8cef7ffec9e0ca1
parente539c5564db4f6ac7015c1875acb903fc7d1939f (diff)
downloadphp-git-66e78004c1018c172d12af29785ee599ebb0cc71.tar.gz
Reverting patch. after more investigation this doesn't help in all that many cases, and with Wez's better patch, sometimes degrade's quality.
-rw-r--r--ext/gd/libgd/gdft.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/gd/libgd/gdft.c b/ext/gd/libgd/gdft.c
index 536b76672a..e93a69b432 100644
--- a/ext/gd/libgd/gdft.c
+++ b/ext/gd/libgd/gdft.c
@@ -509,12 +509,11 @@ tweenColorFetch (char **error, void *key)
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 @@ gdft_draw_bitmap (gdImage * im, int fg, FT_Bitmap bitmap, int pen_x, int pen_y)
}
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;