cvs: php4 /ext/gd/libgd gd.c
| From: | Pierre-Alain Joye | Date: | Tue, 21 Jan 2003 01:49:34 +0000 |
| Subject: | cvs: php4 /ext/gd/libgd gd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-18057@lists.php.net to get a copy of this message | ||
pajoye Mon Jan 20 20:49:34 2003 EDT
Modified files:
/php4/ext/gd/libgd gd.c
Log:
Add credits to my functions (thx for the advice Wez&Ilia :)
Index: php4/ext/gd/libgd/gd.c
diff -u php4/ext/gd/libgd/gd.c:1.41 php4/ext/gd/libgd/gd.c:1.42
--- php4/ext/gd/libgd/gd.c:1.41 Fri Jan 17 13:34:07 2003
+++ php4/ext/gd/libgd/gd.c Mon Jan 20 20:49:34 2003
@@ -1077,6 +1077,11 @@
}
}
+
+/*
+ * Added on 2003/12 by Pierre-Alain Joye (pajoye@pearfr.org)
+ * (c) 2003 Pierre-Alain Joye
+ * */
#define BLEND_COLOR(a, nc, c, cc) \
nc = (cc) + (((((c) - (cc)) * (a)) + ((((c) - (cc)) * (a)) >> 8) + 0x80) >> 8);
@@ -1098,6 +1103,10 @@
im->tpixels[y][x]=gdTrueColorAlpha(dr, dg, db, gdAlphaOpaque);
}
+/*
+ * Added on 2003/12 by Pierre-Alain Joye (pajoye@pearfr.org)
+ * (c) 2003 Pierre-Alain Joye
+ **/
void gdImageAALine (gdImagePtr im, int x1, int y1, int x2, int y2, int col)
{
/* keep them as 32bits */
@@ -2331,6 +2340,13 @@
}
}
+
+/*
+ * Rotate function Added on 2003/12
+ * by Pierre-Alain Joye (pajoye@pearfr.org)
+ * (c) 2003 Pierre-Alain Joye
+ **/
+/* Begin rotate function */
#ifdef ROTATE_PI
#undef ROTATE_PI
#endif /* ROTATE_PI */
@@ -2762,6 +2778,7 @@
return rotatedImg;
}
+/* End Rotate function */
gdImagePtr
gdImageCreateFromXbm (FILE * fd)
@@ -3293,6 +3310,12 @@
}
}
+
+/* Filters function added on 2003/12
+ * by Pierre-Alain Joye (pajoye@pearfr.org)
+ * (c) 2003 Pierre-Alain Joye
+ **/
+/* Begin filters function */
#ifndef HAVE_GET_TRUE_COLOR
#define GET_PIXEL_FUNCTION(src)(src->trueColor?gdImageGetTrueColorPixel:gdImageGetPixel)
#endif
@@ -3745,3 +3768,4 @@
return gdImageConvolution(im, filter, weight+8, 0);
}
+/* End filters function */