cvs: php4(PHP_4_0_7) /ext/gd gd.c

From: Date: Tue, 13 Nov 2001 13:54:20 +0000
Subject: cvs: php4(PHP_4_0_7) /ext/gd gd.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-8198@lists.php.net to get a copy of this message
rasmus Tue Nov 13 08:54:20 2001 EDT Modified files: (Branch: PHP_4_0_7) /php4/ext/gd gd.c Log: MFH Index: php4/ext/gd/gd.c diff -u php4/ext/gd/gd.c:1.154.2.8 php4/ext/gd/gd.c:1.154.2.9 --- php4/ext/gd/gd.c:1.154.2.8 Sat Nov 10 19:08:33 2001 +++ php4/ext/gd/gd.c Tue Nov 13 08:54:20 2001 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: gd.c,v 1.154.2.8 2001/11/11 00:08:33 rasmus Exp $ */ +/* $Id: gd.c,v 1.154.2.9 2001/11/13 13:54:20 rasmus Exp $ */ /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, Cold Spring Harbor Labs. */ @@ -3534,8 +3534,8 @@ else { y_ratio = x_ratio; } - dest_width = org_width / x_ratio; - dest_height = org_height / y_ratio; + dest_width = (int)(org_width / x_ratio); + dest_height = (int)(org_height / y_ratio); } else { x_ratio = (float) dest_width / (float) org_width; @@ -3547,8 +3547,8 @@ else { y_ratio = x_ratio; } - dest_width = org_width * x_ratio; - dest_height = org_height * y_ratio; + dest_width = (int)(org_width * x_ratio); + dest_height = (int)(org_height * y_ratio); } im_tmp = gdImageCreate (dest_width, dest_height);

« previous php.cvs (#8198) next »