[gimp/gimp-2-6] file-png: Indent some code (cherry picked from commit 5b999ab3f9c5e1bb5937111bb1d2fb4222381b98)



commit b71108dcc60339e8bc9ad79a713da9a59cc10788
Author: Mukund Sivaraman <muks banu com>
Date:   Fri May 6 17:51:09 2011 +0530

    file-png: Indent some code
    (cherry picked from commit 5b999ab3f9c5e1bb5937111bb1d2fb4222381b98)

 plug-ins/common/file-png.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/common/file-png.c b/plug-ins/common/file-png.c
index adc3d38..98b62a5 100644
--- a/plug-ins/common/file-png.c
+++ b/plug-ins/common/file-png.c
@@ -1320,7 +1320,8 @@ save_image (const gchar  *filename,
       bpp = 1;
       color_type = PNG_COLOR_TYPE_PALETTE;
       pngg.has_plte = TRUE;
-      pngg.palette = (png_colorp) gimp_image_get_colormap (image_ID, &pngg.num_palette);
+      pngg.palette = (png_colorp) gimp_image_get_colormap (image_ID,
+                                                           &pngg.num_palette);
       bit_depth = get_bit_depth_for_palette (pngg.num_palette);
       break;
 
@@ -1549,7 +1550,9 @@ save_image (const gchar  *filename,
 
           gimp_pixel_rgn_get_rect (&pixel_rgn, pixel, 0, begin,
                                    drawable->width, num);
-          /*if we are with a RGBA image and have to pre-multiply the alpha channel */
+
+          /* If we are with a RGBA image and have to pre-multiply the
+             alpha channel */
           if (bpp == 4 && ! pngvals.save_transp_pixels)
             {
               for (i = 0; i < num; ++i)
@@ -1589,6 +1592,7 @@ save_image (const gchar  *filename,
                     }
                 }
             }
+
           /* Otherwise if we have a paletted image and transparency
            * couldn't be set, we ignore the alpha channel */
           else if (png_get_valid (pp, info, PNG_INFO_PLTE) &&



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