From: James Cox Date: Thu, 8 Aug 2002 15:02:14 +0000 (+0000) Subject: Reverting patch. after more investigation this doesn't help in all that many cases... X-Git-Tag: php-4.3.0dev_zend2_alpha3~184 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=66e78004c1018c172d12af29785ee599ebb0cc71;p=php Reverting patch. after more investigation this doesn't help in all that many cases, and with Wez's better patch, sometimes degrade's quality. --- 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;