Commit d588580c authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

removed optimization of the case where the source and dest regions are the

2008-08-24  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/scale-region.c (scale): removed optimization 
of
	the case where the source and dest regions are the same size. 
This
	should not happen any longer.


svn path=/trunk/; revision=26732
parent 81870672
2008-08-24 Sven Neumann <sven@gimp.org>
* app/paint-funcs/scale-region.c (scale): removed optimization of
the case where the source and dest regions are the same size. This
should not happen any longer.
2008-08-24 Sven Neumann <sven@gimp.org>
* app/paint-funcs/scale-region.c (determine_scale): avoid
......
......@@ -519,26 +519,6 @@ scale (TileManager *srcTM,
}
}
/* if scale is 2^n */
if (src_width == dst_width && src_height == dst_height)
{
PixelRegion srcPR;
PixelRegion dstPR;
pixel_region_init (&srcPR, srcTM, 0, 0, src_width, src_height, FALSE);
pixel_region_init (&dstPR, dstTM, 0, 0, src_width, src_height, TRUE);
copy_region (&srcPR, &dstPR);
if (progress_callback)
{
*progress += dst_tilerows * dst_tilecols;
progress_callback (0, max_progress, *progress, progress_data);
}
return;
}
if (interpolation == GIMP_INTERPOLATION_LANCZOS )
kernel_lookup = create_lanczos3_lookup ();
......
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