gimp r27473 - in branches/gimp-2-6: . app/paint-funcs
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r27473 - in branches/gimp-2-6: . app/paint-funcs
- Date: Wed, 29 Oct 2008 22:51:30 +0000 (UTC)
Author: neo
Date: Wed Oct 29 22:51:29 2008
New Revision: 27473
URL: http://svn.gnome.org/viewvc/gimp?rev=27473&view=rev
Log:
2008-10-29 Sven Neumann <sven gimp org>
Merged from trunk:
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:
branches/gimp-2-6/ChangeLog
branches/gimp-2-6/app/paint-funcs/scale-region.c
Modified: branches/gimp-2-6/app/paint-funcs/scale-region.c
==============================================================================
--- branches/gimp-2-6/app/paint-funcs/scale-region.c (original)
+++ branches/gimp-2-6/app/paint-funcs/scale-region.c Wed Oct 29 22:51:29 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]