Commit 064f2afd authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

Bug 557950 – Scaling in Gimp 2.6 is much slower than in Gimp 2.4

2008-10-29  Sven Neumann  <sven@gimp.org>

	Bug 557950 – Scaling in Gimp 2.6 is much slower than in Gimp 2.4

	* app/paint-funcs/scale-region.c: don't do multi-pass scaling 
when
	we are scaling up.


svn path=/trunk/; revision=27462
parent 75562157
......@@ -208,20 +208,7 @@ scale_determine_levels (PixelRegion *srcPR,
gint width = srcPR->w;
gint height = srcPR->h;
/* determine scaling levels */
while (scalex > 2)
{
scalex /= 2;
width *= 2;
*levelx -= 1;
}
while (scaley > 2)
{
scaley /= 2;
height *= 2;
*levely -= 1;
}
/* downscaling is done in multiple steps */
while (scalex < 0.5 && width > 1)
{
......
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