gimp r27462 - trunk/app/paint-funcs



Author: neo
Date: Wed Oct 29 19:37:52 2008
New Revision: 27462
URL: http://svn.gnome.org/viewvc/gimp?rev=27462&view=rev

Log:
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.



Modified:
   trunk/app/paint-funcs/scale-region.c

Modified: trunk/app/paint-funcs/scale-region.c
==============================================================================
--- trunk/app/paint-funcs/scale-region.c	(original)
+++ trunk/app/paint-funcs/scale-region.c	Wed Oct 29 19:37:52 2008
@@ -208,20 +208,7 @@
   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)
     {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]