app/base/siox.c moved rectangle intersection into

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

	* app/base/siox.c
	* app/core/gimpdrawable-foreground-extract.c: moved rectangle
	intersection into gimp_drawable_foreground_extract().
This commit is contained in:
Sven Neumann
2005-08-06 15:09:31 +00:00
committed by Sven Neumann
parent 68f09c7cb6
commit 3c8a10e925
4 changed files with 28 additions and 21 deletions

View File

@ -44,8 +44,6 @@
#include "paint-funcs/paint-funcs.h"
#include "core/gimp-utils.h" /* FIXME (gimp_rectangle_intersect) */
#include "cpercep.h"
#include "pixel-region.h"
#include "siox.h"
@ -809,7 +807,6 @@ siox_foreground_extract (TileManager *pixels,
PixelRegion srcPR;
PixelRegion mapPR;
gpointer pr;
gboolean intersect;
gint bpp;
gint row, col;
const gfloat clustersize = get_clustersize (limits);
@ -830,19 +827,6 @@ siox_foreground_extract (TileManager *pixels,
g_return_if_fail (y + height <= tile_manager_height (mask));
g_return_if_fail (progress_data == NULL || progress_callback != NULL);
intersect = gimp_rectangle_intersect (offset_x, offset_y,
tile_manager_width (pixels),
tile_manager_height (pixels),
x, y, width, height,
&x, &y, &width, &height);
/* FIXME:
* Should clear the mask outside the rectangle that we are working on.
*/
if (! intersect)
return;
cpercep_init ();
siox_progress_update (progress_callback, progress_data, 0.0);