plug-ins/file-psd/psd-save.c Add support for reading/writing PSDs with the

* plug-ins/file-psd/psd-save.c
* plug-ins/file-psd/psd-util.c: Add support for reading/writing
PSDs with the Linear Dodge layer mode which is the same as GIMPs
Addition layer mode.

svn path=/trunk/; revision=27407
This commit is contained in:
Martin Nordholts 2008-10-25 16:23:19 +00:00
parent 6a7af472ea
commit 76ba090647
3 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2008-10-25 Martin Nordholts <martinn@svn.gnome.org>
* plug-ins/file-psd/psd-save.c
* plug-ins/file-psd/psd-util.c: Add support for reading/writing
PSDs with the Linear Dodge layer mode which is the same as GIMPs
Addition layer mode.
2008-10-25 Michael Natterer <mitch@gimp.org>
Bug 557870 "Qmask" message popping up here and there

View file

@ -336,6 +336,9 @@ psd_lmode_layer (gint32 idLayer,
case GIMP_COLOR_MODE:
strcpy (psdMode, "colr");
break;
case GIMP_ADDITION_MODE:
strcpy (psdMode, "lddg");
break;
case GIMP_MULTIPLY_MODE:
strcpy (psdMode, "mul ");
break;

View file

@ -635,6 +635,8 @@ psd_to_gimp_blend_mode (const gchar *psd_mode)
}
if (g_ascii_strncasecmp (psd_mode, "mul ", 4) == 0) /* Multiply (ps3) */
return GIMP_MULTIPLY_MODE;
if (g_ascii_strncasecmp (psd_mode, "lddg", 4) == 0) /* Linear Dodge (cs2) */
return GIMP_ADDITION_MODE;
if (g_ascii_strncasecmp (psd_mode, "scrn", 4) == 0) /* Screen (ps3) */
return GIMP_SCREEN_MODE;
if (g_ascii_strncasecmp (psd_mode, "diss", 4) == 0) /* Dissolve (ps3) */