documentation.

2007-02-27  Sven Neumann  <sven@gimp.org>

        * app/base/pixel-surround.c: documentation.


svn path=/trunk/; revision=22020
This commit is contained in:
Sven Neumann 2007-02-27 21:55:52 +00:00 committed by Sven Neumann
parent d40c0a5883
commit bcbca9b612
2 changed files with 17 additions and 13 deletions

View File

@ -1,3 +1,7 @@
2007-02-27 Sven Neumann <sven@gimp.org>
* app/base/pixel-surround.c: documentation.
2007-02-27 Michael Natterer <mitch@gimp.org> 2007-02-27 Michael Natterer <mitch@gimp.org>
* app/tools/gimptool.[ch]: clean up last commit a bit. Pass the * app/tools/gimptool.[ch]: clean up last commit a bit. Pass the

View File

@ -30,17 +30,17 @@
struct _PixelSurround struct _PixelSurround
{ {
TileManager *mgr; TileManager *mgr; /* tile manager to access tiles from */
gint bpp; gint bpp; /* bytes per pixel in tile manager */
gint w; gint w; /* width of pixel surround area */
gint h; gint h; /* height of pixel surround area */
guchar bg[MAX_CHANNELS]; guchar bg[MAX_CHANNELS]; /* color to use for uncovered regions */
Tile *tile; Tile *tile; /* locked tile (may be NULL) */
gint tile_x; gint tile_x; /* origin of locked tile */
gint tile_y; gint tile_y; /* origin of locked tile */
gint tile_w; gint tile_w; /* width of locked tile */
gint tile_h; gint tile_h; /* height of locked tile */
guchar buff[0]; guchar buf[0];
}; };
@ -152,7 +152,7 @@ pixel_surround_lock (PixelSurround *surround,
} }
/* otherwise, copy region to our internal buffer */ /* otherwise, copy region to our internal buffer */
dest = surround->buff; dest = surround->buf;
for (j = y; j < y + surround->h; j++) for (j = y; j < y + surround->h; j++)
{ {
@ -182,7 +182,7 @@ pixel_surround_lock (PixelSurround *surround,
*rowstride = surround->w * surround->bpp; *rowstride = surround->w * surround->bpp;
return surround->buff; return surround->buf;
} }
/** /**