Commit afaa010b authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

pass GimpImageBaseType to extract_from_region() instead of some anonymous

2005-06-17  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/paint-funcs.[ch]: pass GimpImageBaseType to
	extract_from_region() instead of some anonymous integer. Added
	some const qualifiers.
parent 5dcbaeb2
2005-06-17 Sven Neumann <sven@gimp.org>
* app/paint-funcs/paint-funcs.[ch]: pass GimpImageBaseType to
extract_from_region() instead of some anonymous integer. Added
some const qualifiers.
2005-06-17 Sven Neumann <sven@gimp.org>
* app/core/gimpselection.c (gimp_selection_extract): fixed
......
......@@ -2345,14 +2345,14 @@ extract_alpha_region (PixelRegion *src,
void
extract_from_region (PixelRegion *src,
PixelRegion *dest,
PixelRegion *mask,
guchar *cmap,
guchar *bg,
gint type,
gboolean has_alpha,
gboolean cut)
extract_from_region (PixelRegion *src,
PixelRegion *dest,
PixelRegion *mask,
const guchar *cmap,
const guchar *bg,
GimpImageBaseType type,
gboolean has_alpha,
gboolean cut)
{
gint h;
guchar *s, *d, *m;
......@@ -2371,12 +2371,13 @@ extract_from_region (PixelRegion *src,
{
switch (type)
{
case 0: /* RGB */
case 1: /* GRAY */
case GIMP_RGB:
case GIMP_GRAY:
extract_from_inten_pixels (s, d, m, bg, cut, src->w,
src->bytes, has_alpha);
break;
case 2: /* INDEXED */
case GIMP_INDEXED:
extract_from_indexed_pixels (s, d, m, cmap, bg, cut, src->w,
src->bytes, has_alpha);
break;
......@@ -3799,7 +3800,7 @@ struct initial_regions_struct
guint opacity;
GimpLayerModeEffects mode;
const gboolean *affect;
InitialMode type;
InitialMode type;
guchar *data;
};
......
......@@ -339,14 +339,14 @@ void extract_alpha_region (PixelRegion *src,
PixelRegion *mask,
PixelRegion *dest);
void extract_from_region (PixelRegion *src,
PixelRegion *dest,
PixelRegion *mask,
guchar *cmap,
guchar *bg,
gint type,
gboolean has_alpha,
gboolean cut);
void extract_from_region (PixelRegion *src,
PixelRegion *dest,
PixelRegion *mask,
const guchar *cmap,
const guchar *bg,
GimpImageBaseType type,
gboolean has_alpha,
gboolean cut);
void convolve_region (PixelRegion *srcR,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment