Commits

Anonymous committed 7821784

- #122, tga, add support for image flip (tga images can be stored
fliped)

  • Participants
  • Parent commits 141b386
  • Branches GD-2.0

Comments (0)

Files changed (1)

 			}
 		}
 	}
-/* 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;