gimp r27613 - in branches/gimp-2-6: . app/paint-funcs
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r27613 - in branches/gimp-2-6: . app/paint-funcs
- Date: Tue, 11 Nov 2008 07:48:13 +0000 (UTC)
Author: neo
Date: Tue Nov 11 07:48:13 2008
New Revision: 27613
URL: http://svn.gnome.org/viewvc/gimp?rev=27613&view=rev
Log:
2008-11-11 Sven Neumann <sven gimp org>
Merged from trunk:
Bug 560283 â "Scale image..." causes distortion around edges.
* app/paint-funcs/scale-region.c (scale): corrected fix for
bug #556248.
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 Tue Nov 11 07:48:13 2008
@@ -509,7 +509,7 @@
for (y = region.y; y < y1; y++)
{
guchar *pixel = row;
- gdouble yfrac = y * scaley + 0.5;
+ gdouble yfrac = (y + 0.5) * scaley - 0.5;
gint sy = (gint) yfrac;
gint x;
@@ -517,7 +517,7 @@
for (x = region.x; x < x1; x++)
{
- gdouble xfrac = x * scalex + 0.5;
+ gdouble xfrac = (x + 0.5) * scalex - 0.5;
gint sx = (gint) xfrac;
xfrac = xfrac - sx;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]