mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 04:22:29 +00:00
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:
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)
|
||||
|
|
Loading…
Reference in a new issue