summaryrefslogtreecommitdiff
path: root/src/gd_tga.c
diff options
context:
space:
mode:
authorpajoye <none@none>2008-02-27 23:25:00 +0000
committerpajoye <none@none>2008-02-27 23:25:00 +0000
commit41d830e0c110e378fc4473948390674f4ea65305 (patch)
treea51caf0fb7302e2188da863a6e3dfa0178974c2d /src/gd_tga.c
parentc9972ade5697bfc4763f3afa7a50a5bd10a36e82 (diff)
downloadlibgd-41d830e0c110e378fc4473948390674f4ea65305.tar.gz
- #129:
- revert horizontal/vertical, was too confusing, it acts now like any application (ie. gimp/ps) instead of talking about h/v axis - optimize both - add simple example
Diffstat (limited to 'src/gd_tga.c')
-rw-r--r--src/gd_tga.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gd_tga.c b/src/gd_tga.c
index 5d5f16a..3f18451 100644
--- a/src/gd_tga.c
+++ b/src/gd_tga.c
@@ -104,9 +104,9 @@ BGD_DECLARE(gdImagePtr) gdImageCreateFromTgaCtx(gdIOCtx* ctx)
if (tga->flipv && tga->fliph) {
gdImageFlipBoth(image);
} else if (tga->flipv) {
- gdImageFlipHorizontal(image);
- } else if (tga->fliph) {
gdImageFlipVertical(image);
+ } else if (tga->fliph) {
+ gdImageFlipHorizontal(image);
}
free_tga(tga);