gimp r27407 - in trunk: . plug-ins/file-psd
- From: martinn svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r27407 - in trunk: . plug-ins/file-psd
- Date: Sat, 25 Oct 2008 16:23:19 +0000 (UTC)
Author: martinn
Date: Sat Oct 25 16:23:19 2008
New Revision: 27407
URL: http://svn.gnome.org/viewvc/gimp?rev=27407&view=rev
Log:
* 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.
Modified:
trunk/ChangeLog
trunk/plug-ins/file-psd/psd-save.c
trunk/plug-ins/file-psd/psd-util.c
Modified: trunk/plug-ins/file-psd/psd-save.c
==============================================================================
--- trunk/plug-ins/file-psd/psd-save.c (original)
+++ trunk/plug-ins/file-psd/psd-save.c Sat Oct 25 16:23:19 2008
@@ -336,6 +336,9 @@
case GIMP_COLOR_MODE:
strcpy (psdMode, "colr");
break;
+ case GIMP_ADDITION_MODE:
+ strcpy (psdMode, "lddg");
+ break;
case GIMP_MULTIPLY_MODE:
strcpy (psdMode, "mul ");
break;
Modified: trunk/plug-ins/file-psd/psd-util.c
==============================================================================
--- trunk/plug-ins/file-psd/psd-util.c (original)
+++ trunk/plug-ins/file-psd/psd-util.c Sat Oct 25 16:23:19 2008
@@ -635,6 +635,8 @@
}
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) */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]