Commit ddb73eb8 authored by Dave Neary's avatar Dave Neary Committed by David Neary
Browse files

Correctly set overlay, hard light and soft light modes from .psd files.



2004-09-21  Dave Neary  <bolsh@gimp.org>

	* plug-ins/common/psd.c: Correctly set overlay, hard light and
	soft light modes from .psd files. Fixes bug #153229.
parent 331b1330
2004-09-21 Dave Neary <bolsh@gimp.org>
* plug-ins/common/psd.c: Correctly set overlay, hard light and
soft light modes from .psd files. Fixes bug #153229.
2004-09-21 Sven Neumann <sven@gimp.org>
* plug-ins/common/svg.c (SVG_DEFAULT_RESOLUTION): set to 90dpi as
......
......@@ -525,22 +525,10 @@ psd_lmode_to_gimp_lmode (gchar modekey[4])
if (strncmp(modekey, "diss", 4)==0) return(GIMP_DISSOLVE_MODE);
if (strncmp(modekey, "diff", 4)==0) return(GIMP_DIFFERENCE_MODE);
if (strncmp(modekey, "lum ", 4)==0) return(GIMP_VALUE_MODE);
#if (GIMP_MAJOR_VERSION > 0) && (GIMP_MINOR_VERSION > 0)
if (strncmp(modekey, "hLit", 4)==0) return(GIMP_HARDLIGHT_MODE);
if (strncmp(modekey, "sLit", 4)==0) return(GIMP_SOFTLIGHT_MODE);
if (strncmp(modekey, "over", 4)==0) return(GIMP_OVERLAY_MODE);
printf("PSD: Warning - unsupported layer-blend mode '%c%c%c%c', using "
"'overlay' mode\n", modekey[0], modekey[1], modekey[2], modekey[3]);
if (strncmp(modekey, "hLit", 4)==0) return(/**/GIMP_OVERLAY_MODE);
if (strncmp(modekey, "sLit", 4)==0) return(/**/GIMP_OVERLAY_MODE);
#else
printf("PSD: Warning - unsupported layer-blend mode '%c%c%c%c', using "
"'addition' mode\n", modekey[0], modekey[1], modekey[2], modekey[3]);
if (strncmp(modekey, "over", 4)==0) return(GIMP_ADDITION_MODE); /* ? */
if (strncmp(modekey, "hLit", 4)==0) return(/**/GIMP_ADDITION_MODE);
if (strncmp(modekey, "sLit", 4)==0) return(/**/GIMP_ADDITION_MODE);
#endif
printf("PSD: Warning - UNKNOWN layer-blend mode, reverting to 'normal'\n");
return(GIMP_NORMAL_MODE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment