[PHP-DEV] patch for libgd/gd.c (gdImageRotate90 x,y transposed)

2003-01-09 Thread Leon Atkinson
This function isn't making the new image with the right dimensions. 

# cvs diff ext/gd/libgd/gd.c
Index: ext/gd/libgd/gd.c
===
RCS file: /repository/php4/ext/gd/libgd/gd.c,v
retrieving revision 1.39
diff -u -r1.39 gd.c
--- ext/gd/libgd/gd.c   18 Dec 2002 21:13:21 -  1.39
+++ ext/gd/libgd/gd.c   10 Jan 2003 01:02:06 -
@@ -2492,10 +2492,10 @@
FuncPtr f;

if (src-trueColor) {
-   dst = gdImageCreateTrueColor ( src-sx,src-sy);
+   dst = gdImageCreateTrueColor (src-sy, src-sx);
f = gdImageGetTrueColorPixel;
} else {
-   dst = gdImageCreate (src-sx, src-sy);
+   dst = gdImageCreate (src-sy, src-sx);
f = gdImageGetPixel;
}



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] patch for libgd/gd.c (gdImageRotate90 x,y transposed)

2003-01-09 Thread Pierre-Alain Joye
On Thu, 9 Jan 2003 17:22:02 -0800
Leon Atkinson [EMAIL PROTECTED] wrote:

 This function isn't making the new image with the right dimensions. 

Thank's :-)

pierre

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php