From f90df24915c9982d952a94cbf384e98bff405217 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Fri, 4 Jul 2014 23:28:46 +0200 Subject: [PATCH] util: update wmiv after the RFlipImage API change in wrlib Signed-off-by: Christophe CURIS --- util/wmiv.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/util/wmiv.c b/util/wmiv.c index 9810b5c1..45cc4e3d 100755 --- a/util/wmiv.c +++ b/util/wmiv.c @@ -147,17 +147,17 @@ RImage *load_oriented_image(RContext *context, const char *file, int index) RImage *tmp = NULL; switch (orientation) { case 2: - tmp = RHorizontalFlipImage(image); + tmp = RFlipImage(image, RHorizontalFlip); break; case 3: tmp = RRotateImage(image, 180); break; case 4: - tmp = RVerticalFlipImage(image); + tmp = RFlipImage(image, RVerticalFlip); break; case 5: { RImage *tmp2; - tmp2 = RVerticalFlipImage(image); + tmp2 = RFlipImage(image, RVerticalFlip); if (tmp2) { tmp = RRotateImage(tmp2, 90); RReleaseImage(tmp2); @@ -169,7 +169,7 @@ RImage *load_oriented_image(RContext *context, const char *file, int index) break; case 7: { RImage *tmp2; - tmp2 = RVerticalFlipImage(image); + tmp2 = RFlipImage(image, RVerticalFlip); if (tmp2) { tmp = RRotateImage(tmp2, 270); RReleaseImage(tmp2); -- 2.11.4.GIT