[gimp/soc-2010-cage-2] app: indentation
- From: Michael Muré <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2010-cage-2] app: indentation
- Date: Thu, 30 Dec 2010 18:10:55 +0000 (UTC)
commit 6693a1c3c79a5d902e6c1e31ad4c720bdde9c234
Author: Michael Natterer <mitch gimp org>
Date: Fri Nov 19 12:02:57 2010 +0100
app: indentation
app/core/gimpcoords.c | 46 ++++++++++++++++++++++------------------------
1 files changed, 22 insertions(+), 24 deletions(-)
---
diff --git a/app/core/gimpcoords.c b/app/core/gimpcoords.c
index febb57c..294e016 100644
--- a/app/core/gimpcoords.c
+++ b/app/core/gimpcoords.c
@@ -215,30 +215,28 @@ gimp_coords_direction (const GimpCoords *a,
}
else if (delta_x == 0)
{
- if (delta_y > 0)
- direction = 0.25;
- else
- direction = 0.75;
- }
- else if (delta_y == 0)
- {
- if (delta_x < 0)
- direction = 0.0;
- else
- direction = 0.5;
- }
- else
- {
- direction = atan ((- 1.0 * delta_y) / delta_x) / (2 * G_PI);
-
- if (delta_x > 0.0)
- direction = direction + 0.5;
-
- if (direction < 0.0)
- direction = direction + 1.0;
-
-
- }
+ if (delta_y > 0)
+ direction = 0.25;
+ else
+ direction = 0.75;
+ }
+ else if (delta_y == 0)
+ {
+ if (delta_x < 0)
+ direction = 0.0;
+ else
+ direction = 0.5;
+ }
+ else
+ {
+ direction = atan ((- 1.0 * delta_y) / delta_x) / (2 * G_PI);
+
+ if (delta_x > 0.0)
+ direction = direction + 0.5;
+
+ if (direction < 0.0)
+ direction = direction + 1.0;
+ }
return direction;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]