gimp r25037 - in trunk: . app/tools
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r25037 - in trunk: . app/tools
- Date: Wed, 5 Mar 2008 19:56:26 +0000 (GMT)
Author: neo
Date: Wed Mar 5 19:56:26 2008
New Revision: 25037
URL: http://svn.gnome.org/viewvc/gimp?rev=25037&view=rev
Log:
2008-03-05 Sven Neumann <sven gimp org>
* app/tools/gimptransformtool.[ch]: applied some unrelated
cleanups from a patch from Tom Lechner (from bug #167926).
Modified:
trunk/ChangeLog
trunk/app/tools/gimptransformtool.c
trunk/app/tools/gimptransformtool.h
Modified: trunk/app/tools/gimptransformtool.c
==============================================================================
--- trunk/app/tools/gimptransformtool.c (original)
+++ trunk/app/tools/gimptransformtool.c Wed Mar 5 19:56:26 2008
@@ -1360,7 +1360,7 @@
static gint last_h = 0;
GimpDisplayShell *shell;
- gdouble dx [4], dy [4];
+ gdouble dx[4], dy[4];
gint area_x, area_y, area_w, area_h;
gint i;
@@ -1388,20 +1388,20 @@
dx + 3, dy + 3, FALSE);
/* find bounding box around preview */
- area_x = area_w = (gint) dx [0];
- area_y = area_h = (gint) dy [0];
+ area_x = area_w = (gint) dx[0];
+ area_y = area_h = (gint) dy[0];
for (i = 1; i < 4; i++)
{
- if (dx [i] < area_x)
- area_x = (gint) dx [i];
- else if (dx [i] > area_w)
- area_w = (gint) dx [i];
-
- if (dy [i] < area_y)
- area_y = (gint) dy [i];
- else if (dy [i] > area_h)
- area_h = (gint) dy [i];
+ if (dx[i] < area_x)
+ area_x = (gint) dx[i];
+ else if (dx[i] > area_w)
+ area_w = (gint) dx[i];
+
+ if (dy[i] < area_y)
+ area_y = (gint) dy[i];
+ else if (dy[i] > area_h)
+ area_h = (gint) dy[i];
}
area_w -= area_x;
Modified: trunk/app/tools/gimptransformtool.h
==============================================================================
--- trunk/app/tools/gimptransformtool.h (original)
+++ trunk/app/tools/gimptransformtool.h Wed Mar 5 19:56:26 2008
@@ -62,7 +62,7 @@
gdouble cx, cy; /* center point (for rotation) */
gdouble aspect; /* original aspect ratio */
- gdouble tx1, ty1; /* transformed coords */
+ gdouble tx1, ty1; /* transformed handle coords */
gdouble tx2, ty2;
gdouble tx3, ty3;
gdouble tx4, ty4;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]