plug-ins/common/deinterlace.c added parentheses where gcc suggested them.

2003-03-07  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/deinterlace.c
	* plug-ins/common/pixelize.c: added parentheses where gcc
	suggested them.
This commit is contained in:
Sven Neumann 2003-03-07 20:38:23 +00:00 committed by Sven Neumann
parent 6412d5f535
commit e70bd5d270
3 changed files with 21 additions and 13 deletions

View File

@ -1,3 +1,9 @@
2003-03-07 Sven Neumann <sven@gimp.org>
* plug-ins/common/deinterlace.c
* plug-ins/common/pixelize.c: added parentheses where gcc
suggested them.
2003-03-07 Sven Neumann <sven@gimp.org>
* app/base/hue-saturation.[ch]: changed the hue_saturation()

View File

@ -234,17 +234,17 @@ deinterlace (GimpDrawable *drawable)
for (col = 0; col < x2-x1; col++)
{
gint b;
gint b;
guint ualpha = upix[bytes-1];
guint lalpha = lpix[bytes-1];
guint alpha = ualpha + lalpha;
guint alpha = ualpha + lalpha;
if (dpix[bytes-1] = alpha >> 1)
if ((dpix[bytes-1] = (alpha >> 1)))
{
for (b = 0; b < bytes-1; b++)
dpix[b] = (upix[b] * ualpha
+ lpix[b] * lalpha) / alpha;
dpix[b] = (upix[b] * ualpha + lpix[b] * lalpha) / alpha;
}
upix += bytes;
lpix += bytes;
dpix += bytes;

View File

@ -516,14 +516,14 @@ pixelize_large (GimpDrawable *drawable,
{
gulong alpha = average[bpp-1];
if (average[bpp-1] = alpha/count)
for (b = 0; b < bpp-1; b++)
average[b] /= alpha;
if ((average[bpp-1] = alpha / count))
for (b = 0; b < bpp-1; b++)
average[b] /= alpha;
}
else
{
for (b = 0; b < bpp; b++)
average[b] /= count;
average[b] /= count;
}
}
@ -541,7 +541,8 @@ pixelize_large (GimpDrawable *drawable,
{
for (b = 0; b < bpp; b++)
dest[b] = average[b];
dest += dest_rgn.bpp;
dest += dest_rgn.bpp;
count += 1;
}
dest_row += dest_rgn.rowstride;
@ -706,16 +707,16 @@ pixelize_sub (gint pixelwidth,
{
gulong alpha = average[bpp-1];
if (average[bpp-1] = alpha/count)
if ((average[bpp-1] = alpha / count))
{
for (i = 0; i < bpp-1; i++)
average[i] /= alpha;
average[i] /= alpha;
}
}
else
{
for (i = 0; i < bpp; i++)
average[i] /= count;
average[i] /= count;
}
}
@ -729,6 +730,7 @@ pixelize_sub (gint pixelwidth,
{
for (i = 0; i < bpp; i++)
buf[i] = average[i];
count++;
buf += bpp;
}