followup change for bug #105568

svn path=/trunk/; revision=26527
This commit is contained in:
Sven Neumann 2008-08-12 20:50:06 +00:00
parent f35066ffe4
commit a39600752f
1 changed files with 6 additions and 2 deletions

View File

@ -1419,7 +1419,7 @@ replace_inten_pixels (const guchar *src1,
guchar new_alpha = INT_BLEND (src2_alpha, src1_alpha,
INT_MULT (*m, opacity, tmp), tmp);
if (new_alpha && affect[b])
if (new_alpha)
{
guint ratio = *m * opacity;
@ -1427,7 +1427,11 @@ replace_inten_pixels (const guchar *src1,
for (b = 0; b < alpha; b++)
{
if (src2[b] > src1[b])
if (! affect[b])
{
dest[b] = src1[b];
}
else if (src2[b] > src1[b])
{
guint t = (src2[b] - src1[b]) * ratio;
dest[b] = src1[b] + INT_DIV (t, 255);