formatting.

2005-07-09  Sven Neumann  <sven@gimp.org>

	* app/base/pixel-surround.[ch]: formatting.
This commit is contained in:
Sven Neumann 2005-07-09 12:04:23 +00:00 committed by Sven Neumann
parent 4b29677d16
commit 841144efbd
3 changed files with 19 additions and 21 deletions

View File

@ -1,5 +1,7 @@
2005-07-09 Sven Neumann <sven@gimp.org>
* app/base/pixel-surround.[ch]: formatting.
* app/core/gimpchannel.c (gimp_channel_real_feather):
gaussian_blur_region() writes to the pixel data, need to initialize
the pixel region with dirty == TRUE;

View File

@ -33,14 +33,12 @@ pixel_surround_init (PixelSurround *ps,
TileManager *tm,
gint w,
gint h,
guchar bg[MAX_CHANNELS])
const guchar bg[MAX_CHANNELS])
{
gint i;
for (i = 0; i < MAX_CHANNELS; ++i)
{
ps->bg[i] = bg[i];
}
ps->tile = NULL;
ps->mgr = tm;
@ -73,6 +71,7 @@ pixel_surround_lock (PixelSurround *ps,
(j < (tile_eheight (ps->tile) - ps->h)))
{
ps->row_stride = tile_ewidth (ps->tile) * ps->bpp;
/* is this really the correct way? */
return tile_data_pointer (ps->tile, i, j);
}
@ -100,20 +99,17 @@ pixel_surround_lock (PixelSurround *ps,
j % TILE_HEIGHT);
for (k = buff; k < buff+ps->bpp; ++k, ++ptr)
{
*ptr = *k;
}
tile_release (tile, FALSE);
}
else
{
for (k = ps->bg; k < ps->bg + ps->bpp; ++k, ++ptr)
{
*ptr = *k;
}
}
}
}
ps->row_stride = ps->w * ps->bpp;
return ps->buff;

View File

@ -42,7 +42,7 @@ void pixel_surround_init (PixelSurround *ps,
TileManager *tm,
gint w,
gint h,
guchar bg[MAX_CHANNELS]);
const guchar bg[MAX_CHANNELS]);
/* return a pointer to a buffer which contains all the surrounding pixels
* strategy: if we are in the middle of a tile, use the tile storage