CVS update: php3/functions
| From: | ssb | Date: | Fri, 13 Nov 1998 18:43:28 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-2386@lists.php.net to get a copy of this message | ||
Date: Friday November 13, 1998 @ 13:43
Author: ssb
Update of /repository/php3/functions
In directory asf:/u2/tmp/cvs-serv3545
Modified Files:
gd.c
Log Message:
handle angles > 360° correctly
Index: php3/functions/gd.c
diff -c php3/functions/gd.c:1.99 php3/functions/gd.c:1.100
*** php3/functions/gd.c:1.99 Sun Nov 8 16:12:40 1998
--- php3/functions/gd.c Fri Nov 13 13:43:26 1998
***************
*** 29,35 ****
+----------------------------------------------------------------------+
*/
! /* $Id: gd.c,v 1.99 1998/11/08 21:12:40 rasmus Exp $ */
/* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
Cold Spring Harbor Labs. */
--- 29,35 ----
+----------------------------------------------------------------------+
*/
! /* $Id: gd.c,v 1.100 1998/11/13 18:43:26 ssb Exp $ */
/* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
Cold Spring Harbor Labs. */
***************
*** 1009,1020 ****
convert_to_long(COL);
col = COL->value.lval;
! e = E->value.lval % 360;
! st = ST->value.lval % 360;
h = H->value.lval;
w = W->value.lval;
cy = CY->value.lval;
cx = CX->value.lval;
im = php3_list_find(IM->value.lval, &ind_type);
if (!im || ind_type != GD_GLOBAL(le_gd)) {
--- 1009,1027 ----
convert_to_long(COL);
col = COL->value.lval;
! e = E->value.lval;
! st = ST->value.lval;
h = H->value.lval;
w = W->value.lval;
cy = CY->value.lval;
cx = CX->value.lval;
+
+ if (e < 0) {
+ e %= 360;
+ }
+ if (st < 0) {
+ st %= 360;
+ }
im = php3_list_find(IM->value.lval, &ind_type);
if (!im || ind_type != GD_GLOBAL(le_gd)) {
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net