[gimp] plug-ins: Port common/file-tiff-load.c to new item transform API



commit 4a32f3e5003d1ac75c3acee7deb0f6640c62fcea
Author: Martin Nordholts <martinn src gnome org>
Date:   Wed Oct 6 19:53:14 2010 +0200

    plug-ins: Port common/file-tiff-load.c to new item transform API
    
    We don't need to use gimp_context_set_transform_resize() since we flip
    around the center.
    
    Note that the current code will never work before we try to rotate the
    layer before it is added to the image, but that's a different bug...

 plug-ins/common/file-tiff-load.c |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/plug-ins/common/file-tiff-load.c b/plug-ins/common/file-tiff-load.c
index 1d7cb0b..063c641 100644
--- a/plug-ins/common/file-tiff-load.c
+++ b/plug-ins/common/file-tiff-load.c
@@ -1068,14 +1068,16 @@ load_image (const gchar        *filename,
             }
 
           if (flip_horizontal)
-            gimp_drawable_transform_flip_simple (layer,
-                                                 GIMP_ORIENTATION_HORIZONTAL,
-                                                 TRUE, 0.0, TRUE);
+            gimp_item_transform_flip_simple (layer,
+                                             GIMP_ORIENTATION_HORIZONTAL,
+                                             TRUE /*auto_center*/,
+                                             -1.0 /*axis*/);
 
           if (flip_vertical)
-            gimp_drawable_transform_flip_simple (layer,
-                                                 GIMP_ORIENTATION_VERTICAL,
-                                                 TRUE, 0.0, TRUE);
+            gimp_item_transform_flip_simple (layer,
+                                             GIMP_ORIENTATION_VERTICAL,
+                                             TRUE /*auto_center*/,
+                                             -1.0 /*axis*/);
         }
 
       gimp_drawable_flush (channel[0].drawable);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]