[gimp/gimp-2-6] file-mng: Rename more variables (cherry picked from commit 8868a044ea266618e06c984e5ac500db59f0c1cf)



commit 7de49a80bd5a52270c6d9fe3af7ce49afd7ec5f4
Author: Mukund Sivaraman <muks banu com>
Date:   Tue Apr 26 15:19:43 2011 +0530

    file-mng: Rename more variables
    (cherry picked from commit 8868a044ea266618e06c984e5ac500db59f0c1cf)

 plug-ins/common/file-mng.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plug-ins/common/file-mng.c b/plug-ins/common/file-mng.c
index e7aeab3..75fd23e 100644
--- a/plug-ins/common/file-mng.c
+++ b/plug-ins/common/file-mng.c
@@ -435,8 +435,8 @@ get_bit_depth_for_palette (int num_palette)
  */
 
 static gboolean
-respin_cmap (png_structp  png_ptr,
-             png_infop    png_info_ptr,
+respin_cmap (png_structp  pp,
+             png_infop    info,
              guchar       *remap,
              gint32       image_id,
              GimpDrawable *drawable,
@@ -481,7 +481,7 @@ respin_cmap (png_structp  png_ptr,
           png_color palette[256] = { {0, 0, 0} };
           gint i;
 
-          png_set_tRNS (png_ptr, png_info_ptr, (png_bytep) trans, 1, NULL);
+          png_set_tRNS (pp, info, (png_bytep) trans, 1, NULL);
 
           /* Transform all pixels with a value = transparent to
            * 0 and vice versa to compensate for re-ordering in palette
@@ -503,7 +503,7 @@ respin_cmap (png_structp  png_ptr,
               palette[i].blue = before[3 * remap[i] + 2];
             }
 
-          png_set_PLTE (png_ptr, png_info_ptr, (png_colorp) palette, colors);
+          png_set_PLTE (pp, info, (png_colorp) palette, colors);
           *bit_depth = get_bit_depth_for_palette (colors);
 
           return TRUE;
@@ -515,7 +515,7 @@ respin_cmap (png_structp  png_ptr,
         }
     }
 
-  png_set_PLTE (png_ptr, png_info_ptr, (png_colorp) before, colors);
+  png_set_PLTE (pp, info, (png_colorp) before, colors);
   *bit_depth = get_bit_depth_for_palette (colors);
 
   return FALSE;



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