[gimp] file-png: Use proper enum types instead of ints



commit bf7508bcd7ab27c6b6225416397e40fe8c7baafc
Author: Mukund Sivaraman <muks banu com>
Date:   Fri May 10 11:36:50 2013 +0530

    file-png: Use proper enum types instead of ints

 plug-ins/common/file-png.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/common/file-png.c b/plug-ins/common/file-png.c
index e47c639..9da00ff 100644
--- a/plug-ins/common/file-png.c
+++ b/plug-ins/common/file-png.c
@@ -693,9 +693,6 @@ load_image (const gchar  *filename,
   int i,                        /* Looping var */
     trns,                       /* Transparency present */
     bpp,                        /* Bytes per pixel */
-    image_type,                 /* Type of image */
-    image_precision,            /* Precision of image */
-    layer_type,                 /* Type of drawable/layer */
     width,                      /* image width */
     height,                     /* image height */
     empty,                      /* Number of fully transparent indices */
@@ -705,6 +702,9 @@ load_image (const gchar  *filename,
     begin,                      /* Beginning tile row */
     end,                        /* Ending tile row */
     num;                        /* Number of rows to load */
+  GimpImageBaseType image_type; /* Type of image */
+  GimpPrecision image_precision;/* Precision of image */
+  GimpImageType layer_type;     /* Type of drawable/layer */
   FILE *fp;                     /* File pointer */
   volatile gint32 image = -1;   /* Image -- preserved against setjmp() */
   gint32 layer;                 /* Layer */


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