[gimp/gimp-2-6] file-png: Update comment for png_set_IHDR() (cherry picked from commit ae654a7aaea25a1ae445b702f5779
- From: Nils Philippsen <nphilipp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-6] file-png: Update comment for png_set_IHDR() (cherry picked from commit ae654a7aaea25a1ae445b702f5779
- Date: Thu, 17 Nov 2011 16:01:38 +0000 (UTC)
commit 80f8e400a4e64431f69ba800f73e5ffb29b8385c
Author: Mukund Sivaraman <muks banu com>
Date: Thu May 5 20:47:53 2011 +0530
file-png: Update comment for png_set_IHDR()
(cherry picked from commit ae654a7aaea25a1ae445b702f57792562e1d3763)
plug-ins/common/file-png.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/common/file-png.c b/plug-ins/common/file-png.c
index d6a56fd..adc3d38 100644
--- a/plug-ins/common/file-png.c
+++ b/plug-ins/common/file-png.c
@@ -1336,8 +1336,8 @@ save_image (const gchar *filename,
return FALSE;
}
- /* Set the image dimensions, bit depth, interlacing and compression */
-
+ /* Note: png_set_IHDR() must be called before any other png_set_*()
+ functions. */
png_set_IHDR (pp, info, drawable->width, drawable->height,
bit_depth,
color_type,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]