cvs: gd /libgd/src gd_tga.c
| From: | Pierre-Alain Joye | Date: | Sat, 03 Nov 2007 10:41:29 +0000 |
| Subject: | cvs: gd /libgd/src gd_tga.c | ||
| Groups: | php.gd.cvs | ||
| Request: | Send a blank email to php-gd-cvs+get-329@lists.php.net to get a copy of this message | ||
pajoye Sat Nov 3 10:41:29 2007 UTC
Modified files:
/gd/libgd/src gd_tga.c
Log:
- #122, tga, add support for image flip (tga images can be stored
fliped)
http://cvs.php.net/viewvc.cgi/gd/libgd/src/gd_tga.c?r1=1.7&r2=1.8&diff_format=u
Index: gd/libgd/src/gd_tga.c
diff -u gd/libgd/src/gd_tga.c:1.7 gd/libgd/src/gd_tga.c:1.8
--- gd/libgd/src/gd_tga.c:1.7 Tue Oct 16 22:05:55 2007
+++ gd/libgd/src/gd_tga.c Sat Nov 3 10:41:29 2007
@@ -102,16 +102,15 @@
}
}
}
-/* TODO: enable this part as soon as the flip functions have been commited*/
-#if 0
+
if (tga->flipv && tga->fliph) {
- gdImageFlip(image, GD_FLIP_BOTH);
+ gdImageFlipBoth(image);
} else if (tga->flipv) {
- gdImageFlip(image, GD_FLIP_HORIZONTAL);
+ gdImageFlipHorizontal(image);
} else if (tga->fliph) {
- gdImageFlip(image, GD_FLIP_VERTICAL);
+ gdImageFlipVertical(image);
}
-#endif
+
free_tga(tga);
return image;