app: remove copy_region()
This commit is contained in:
@ -1673,47 +1673,6 @@ blend_region (PixelRegion *src1,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
copy_region (PixelRegion *src,
|
|
||||||
PixelRegion *dest)
|
|
||||||
{
|
|
||||||
gpointer pr;
|
|
||||||
|
|
||||||
for (pr = pixel_regions_register (2, src, dest);
|
|
||||||
pr != NULL;
|
|
||||||
pr = pixel_regions_process (pr))
|
|
||||||
{
|
|
||||||
if (src->tiles && dest->tiles &&
|
|
||||||
src->curtile && dest->curtile &&
|
|
||||||
src->offx == 0 && dest->offx == 0 &&
|
|
||||||
src->offy == 0 && dest->offy == 0 &&
|
|
||||||
src->w == tile_ewidth (src->curtile) &&
|
|
||||||
dest->w == tile_ewidth (dest->curtile) &&
|
|
||||||
src->h == tile_eheight (src->curtile) &&
|
|
||||||
dest->h == tile_eheight (dest->curtile))
|
|
||||||
{
|
|
||||||
tile_manager_map_over_tile (dest->tiles,
|
|
||||||
dest->curtile, src->curtile);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
const guchar *s = src->data;
|
|
||||||
guchar *d = dest->data;
|
|
||||||
gint h = src->h;
|
|
||||||
gint pixels = src->w * src->bytes;
|
|
||||||
|
|
||||||
while (h --)
|
|
||||||
{
|
|
||||||
memcpy (d, s, pixels);
|
|
||||||
|
|
||||||
s += src->rowstride;
|
|
||||||
d += dest->rowstride;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
convolve_region (PixelRegion *srcR,
|
convolve_region (PixelRegion *srcR,
|
||||||
PixelRegion *destR,
|
PixelRegion *destR,
|
||||||
|
@ -248,9 +248,6 @@ void blend_region (PixelRegion *src1,
|
|||||||
PixelRegion *dest,
|
PixelRegion *dest,
|
||||||
guchar blend);
|
guchar blend);
|
||||||
|
|
||||||
void copy_region (PixelRegion *src,
|
|
||||||
PixelRegion *dest);
|
|
||||||
|
|
||||||
void convolve_region (PixelRegion *srcR,
|
void convolve_region (PixelRegion *srcR,
|
||||||
PixelRegion *destR,
|
PixelRegion *destR,
|
||||||
const gfloat *matrix,
|
const gfloat *matrix,
|
||||||
|
Reference in New Issue
Block a user