[gimp/gimp-2-10] plug-ins: in file-psd, fix indentation in psd-save.c
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] plug-ins: in file-psd, fix indentation in psd-save.c
- Date: Sun, 26 Apr 2020 20:39:23 +0000 (UTC)
commit 5bef0b9588b04f2e58277d2de3b86626123e45c9
Author: Ell <ell_se yahoo com>
Date: Sun Apr 26 22:47:26 2020 +0300
plug-ins: in file-psd, fix indentation in psd-save.c
plug-ins/file-psd/psd-save.c | 50 ++++++++++++++++++++++----------------------
1 file changed, 25 insertions(+), 25 deletions(-)
---
diff --git a/plug-ins/file-psd/psd-save.c b/plug-ins/file-psd/psd-save.c
index 40475bb33b..ce92977bef 100644
--- a/plug-ins/file-psd/psd-save.c
+++ b/plug-ins/file-psd/psd-save.c
@@ -663,41 +663,41 @@ save_resources (FILE *fd,
/* write_pascalstring (fd, Name, "Id name"); */
write_gint16 (fd, 0, "Id name"); /* Set to null string (two zeros) */
- /* Mark current position in the file */
+ /* Mark current position in the file */
- name_sec = ftell (fd);
- write_gint32 (fd, 0, "0x03EE resource size");
+ name_sec = ftell (fd);
+ write_gint32 (fd, 0, "0x03EE resource size");
- /* Write all strings */
+ /* Write all strings */
- /* if the merged_image contains transparency, write a name for it first */
- if (gimp_drawable_has_alpha (PSDImageData.merged_layer))
- write_string (fd, "Transparency", "channel name");
+ /* if the merged_image contains transparency, write a name for it first */
+ if (gimp_drawable_has_alpha (PSDImageData.merged_layer))
+ write_string (fd, "Transparency", "channel name");
- for (i = PSDImageData.nChannels - 1; i >= 0; i--)
- {
- char *chName = gimp_item_get_name (PSDImageData.lChannels[i]);
- write_string (fd, chName, "channel name");
- g_free (chName);
- }
- /* Calculate and write actual resource's length */
+ for (i = PSDImageData.nChannels - 1; i >= 0; i--)
+ {
+ char *chName = gimp_item_get_name (PSDImageData.lChannels[i]);
+ write_string (fd, chName, "channel name");
+ g_free (chName);
+ }
+ /* Calculate and write actual resource's length */
- eof_pos = ftell (fd);
+ eof_pos = ftell (fd);
- fseek (fd, name_sec, SEEK_SET);
- write_gint32 (fd, eof_pos - name_sec - sizeof (gint32), "0x03EE resource size");
- IFDBG printf ("\tTotal length of 0x03EE resource: %d\n",
- (int) (eof_pos - name_sec - sizeof (gint32)));
+ fseek (fd, name_sec, SEEK_SET);
+ write_gint32 (fd, eof_pos - name_sec - sizeof (gint32), "0x03EE resource size");
+ IFDBG printf ("\tTotal length of 0x03EE resource: %d\n",
+ (int) (eof_pos - name_sec - sizeof (gint32)));
- /* Return to EOF to continue writing */
+ /* Return to EOF to continue writing */
- fseek (fd, eof_pos, SEEK_SET);
+ fseek (fd, eof_pos, SEEK_SET);
- /* Pad if length is odd */
+ /* Pad if length is odd */
- if ((eof_pos - name_sec - sizeof (gint32)) & 1)
- write_gchar (fd, 0, "pad byte");
- }
+ if ((eof_pos - name_sec - sizeof (gint32)) & 1)
+ write_gchar (fd, 0, "pad byte");
+ }
/* --------------- Write Guides --------------- */
if (gimp_image_find_next_guide(image_id, 0))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]