hopefully really fixed bug #353227 this time.
2006-09-09 Sven Neumann <sven@gimp.org> * plug-ins/common/emboss.c: hopefully really fixed bug #353227 this time.
This commit is contained in:
committed by
Sven Neumann
parent
beb9cae497
commit
c75eb914cc
@ -1,3 +1,8 @@
|
||||
2006-09-09 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/common/emboss.c: hopefully really fixed bug #353227
|
||||
this time.
|
||||
|
||||
2006-09-09 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/dialogs/about-dialog.c: added missing include.
|
||||
|
||||
@ -274,9 +274,6 @@ emboss_row (const guchar *src,
|
||||
gint shade, b;
|
||||
gint i, j;
|
||||
|
||||
for (i = 0; i < 3; i++)
|
||||
s[i] += bypp;
|
||||
|
||||
for (i = 0; i < 3; i++)
|
||||
for (j = 0; j < 3; j++)
|
||||
M[i][j] = 0.0;
|
||||
@ -287,11 +284,11 @@ emboss_row (const guchar *src,
|
||||
for (j = 0; j < 3; j++)
|
||||
{
|
||||
if (alpha)
|
||||
a = s[i][(j - 1) * bypp + bytes] / 255.0;
|
||||
a = s[i][j * bypp + bytes] / 255.0;
|
||||
else
|
||||
a = 1.0;
|
||||
|
||||
M[i][j] += a * s[i][(j - 1) * bypp + b];
|
||||
M[i][j] += a * s[i][j * bypp + b];
|
||||
}
|
||||
}
|
||||
|
||||
@ -314,7 +311,7 @@ emboss_row (const guchar *src,
|
||||
|
||||
if (alpha)
|
||||
{
|
||||
*dst++ = s[1][bytes]; /* preserve the alpha */
|
||||
*dst++ = s[1][bypp + bytes]; /* preserve the alpha */
|
||||
texture++;
|
||||
}
|
||||
}
|
||||
@ -324,8 +321,11 @@ emboss_row (const guchar *src,
|
||||
*dst++ = shade;
|
||||
|
||||
if (alpha)
|
||||
*dst++ = s[1][bytes]; /* preserve the alpha */
|
||||
*dst++ = s[1][bypp + bytes]; /* preserve the alpha */
|
||||
}
|
||||
|
||||
for (i = 0; i < 3; i++)
|
||||
s[i] += bypp;
|
||||
}
|
||||
|
||||
if (texture)
|
||||
|
||||
Reference in New Issue
Block a user