[gimp] formatting
- From: Sven Neumann <neo src gnome org>
- To: svn-commits-list gnome org
- Subject: [gimp] formatting
- Date: Thu, 21 May 2009 13:06:28 -0400 (EDT)
commit 0935bdde12e71177c838759d312160a867f7c103
Author: Sven Neumann <sven gimp org>
Date: Thu May 21 19:06:07 2009 +0200
formatting
---
app/core/gimpimage-convert.c | 25 +++++++++++++------------
1 files changed, 13 insertions(+), 12 deletions(-)
diff --git a/app/core/gimpimage-convert.c b/app/core/gimpimage-convert.c
index ccbec21..738dcfb 100644
--- a/app/core/gimpimage-convert.c
+++ b/app/core/gimpimage-convert.c
@@ -1271,6 +1271,7 @@ generate_histogram_rgb (CFHistogram histogram,
while (size--)
{
gboolean transparent = FALSE;
+
if (has_alpha)
{
if (alpha_dither)
@@ -2815,8 +2816,8 @@ median_cut_pass2_no_dither_gray (QuantizeObj *quantobj,
if (alpha_dither)
{
- gint dither_x = (col+offsetx+srcPR.x) & DM_WIDTHMASK;
- gint dither_y = (row+offsety+srcPR.y) & DM_HEIGHTMASK;
+ gint dither_x = (col + offsetx + srcPR.x) & DM_WIDTHMASK;
+ gint dither_y = (row + offsety + srcPR.y) & DM_HEIGHTMASK;
if ((src[ALPHA_G]) < DM[dither_x][dither_y])
transparent = TRUE;
@@ -2899,8 +2900,8 @@ median_cut_pass2_fixed_dither_gray (QuantizeObj *quantobj,
for (col = 0; col < srcPR.w; col++)
{
const int dmval =
- DM[(col+offsetx+srcPR.x) & DM_WIDTHMASK]
- [(row+offsety+srcPR.y) & DM_HEIGHTMASK];
+ DM[(col + offsetx + srcPR.x) & DM_WIDTHMASK]
+ [(row + offsety + srcPR.y) & DM_HEIGHTMASK];
/* get pixel value and index into the cache */
pixel = src[GRAY];
@@ -3069,8 +3070,8 @@ median_cut_pass2_no_dither_rgb (QuantizeObj *quantobj,
if (alpha_dither)
{
- gint dither_x = (col+offsetx+srcPR.x) & DM_WIDTHMASK;
- gint dither_y = (row+offsety+srcPR.y) & DM_HEIGHTMASK;
+ gint dither_x = (col + offsetx + srcPR.x) & DM_WIDTHMASK;
+ gint dither_y = (row + offsety + srcPR.y) & DM_HEIGHTMASK;
if ((src[alpha_pix]) < DM[dither_x][dither_y])
transparent = TRUE;
}
@@ -3189,8 +3190,8 @@ median_cut_pass2_fixed_dither_rgb (QuantizeObj *quantobj,
for (col = 0; col < srcPR.w; col++)
{
const int dmval =
- DM[(col+offsetx+srcPR.x) & DM_WIDTHMASK]
- [(row+offsety+srcPR.y) & DM_HEIGHTMASK];
+ DM[(col + offsetx + srcPR.x) & DM_WIDTHMASK]
+ [(row + offsety + srcPR.y) & DM_HEIGHTMASK];
if (has_alpha)
{
@@ -3680,8 +3681,8 @@ median_cut_pass2_fs_dither_gray (QuantizeObj *quantobj,
{
if (alpha_dither)
{
- gint dither_x = (col+offsetx) & DM_WIDTHMASK;
- gint dither_y = (row+offsety) & DM_HEIGHTMASK;
+ gint dither_x = (col + offsetx) & DM_WIDTHMASK;
+ gint dither_y = (row + offsety) & DM_HEIGHTMASK;
if ((src[ALPHA_G]) < DM[dither_x][dither_y])
transparent = TRUE;
@@ -3964,8 +3965,8 @@ median_cut_pass2_fs_dither_rgb (QuantizeObj *quantobj,
{
if (alpha_dither)
{
- gint dither_x = (col+offsetx) & DM_WIDTHMASK;
- gint dither_y = (row+offsety) & DM_HEIGHTMASK;
+ gint dither_x = (col + offsetx) & DM_WIDTHMASK;
+ gint dither_y = (row + offsety) & DM_HEIGHTMASK;
if ((src[alpha_pix]) < DM[dither_x][dither_y])
transparent = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]