From 66e78004c1018c172d12af29785ee599ebb0cc71 Mon Sep 17 00:00:00 2001 From: James Cox Date: Thu, 8 Aug 2002 15:02:14 +0000 Subject: [PATCH] Reverting patch. after more investigation this doesn't help in all that many cases, and with Wez's better patch, sometimes degrade's quality. --- ext/gd/libgd/gdft.c | 7 +++---- 1 file 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; -- 2.50.1