]> granicus.if.org Git - php/commitdiff
Reverting patch. after more investigation this doesn't help in all that many cases...
authorJames Cox <imajes@php.net>
Thu, 8 Aug 2002 15:02:14 +0000 (15:02 +0000)
committerJames Cox <imajes@php.net>
Thu, 8 Aug 2002 15:02:14 +0000 (15:02 +0000)
ext/gd/libgd/gdft.c

index 536b76672aea7e9cb441f2d162890ce70a027558..e93a69b432f5f80e7bf357fe0ee831896fb3ba0c 100644 (file)
@@ -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;