[gimp/soc-2010-cage-2] cleaning
- From: Michael Muré <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2010-cage-2] cleaning
- Date: Fri, 13 Aug 2010 16:27:02 +0000 (UTC)
commit 54a9294ea9ee33cf5b27a9d68ab4d32cc9fd4104
Author: Michael Muré <batolettre gmail com>
Date: Fri Aug 13 18:26:38 2010 +0200
cleaning
app/gegl/gimpcageconfig.c | 39 ---------------------------------
app/gegl/gimpoperationcagecoefcalc.h | 2 +-
app/gegl/gimpoperationcagepreview.h | 2 +-
app/gegl/gimpoperationcagetransform.c | 20 ++++++++--------
app/gegl/gimpoperationcagetransform.h | 2 +-
5 files changed, 13 insertions(+), 52 deletions(-)
---
diff --git a/app/gegl/gimpcageconfig.c b/app/gegl/gimpcageconfig.c
index 9813879..354f1f0 100644
--- a/app/gegl/gimpcageconfig.c
+++ b/app/gegl/gimpcageconfig.c
@@ -425,42 +425,3 @@ gimp_cage_config_point_inside (GimpCageConfig *gcc,
return inside;
}
-
-
-/*static inline gint
-gimp_cage_config_is_left (GimpVector2 *p0, GimpVector2 *p1, GimpVector2 *p2)
-{
- return ( (p1->x - p0->x) * (p2->y - p0->y) - (p2->x - p0->x) * (p1->y - p0->y) );
-}
-
-gboolean
-gimp_cage_config_point_inside (GimpCageConfig *gcc,
- gfloat x,
- gfloat y)
-{
- gint wn = 0;
- gint i;
- gint cvn = gcc->cage_vertice_number;
- GimpVector2 *cv = gcc->cage_vertices;
- GimpVector2 p = {x, y};
-
- for (i = 0; i < gcc->cage_vertice_number; i++)
- {
- if (cv[i].y <= y)
- {
- if ((cv[(i+1) % cvn].y > y) && gimp_cage_config_is_left (&cv[i], &cv[(i+1) % cvn], &p) > 0)
- {
- wn++;
- }
- }
- else
- {
- if ((cv[(i+1) % cvn].y <= y) && gimp_cage_config_is_left (&cv[i], &cv[(i+1) % cvn], &p) < 0)
- {
- wn--;
- }
- }
- }
-
- return (wn > 0);
-}*/
diff --git a/app/gegl/gimpoperationcagecoefcalc.h b/app/gegl/gimpoperationcagecoefcalc.h
index f652f51..2795484 100644
--- a/app/gegl/gimpoperationcagecoefcalc.h
+++ b/app/gegl/gimpoperationcagecoefcalc.h
@@ -43,7 +43,7 @@ typedef struct _GimpOperationCageCoefCalcClass GimpOperationCageCoefCalcClass;
struct _GimpOperationCageCoefCalc
{
GeglOperationSource parent_instance;
-
+
GimpCageConfig *config;
};
diff --git a/app/gegl/gimpoperationcagepreview.h b/app/gegl/gimpoperationcagepreview.h
index c480f47..2961ded 100644
--- a/app/gegl/gimpoperationcagepreview.h
+++ b/app/gegl/gimpoperationcagepreview.h
@@ -42,7 +42,7 @@ typedef struct _GimpOperationCagePreviewClass GimpOperationCagePreviewClass;
struct _GimpOperationCagePreview
{
GeglOperationComposer parent_instance;
-
+
GimpCageConfig *config;
};
diff --git a/app/gegl/gimpoperationcagetransform.c b/app/gegl/gimpoperationcagetransform.c
index 5961c76..69b8267 100644
--- a/app/gegl/gimpoperationcagetransform.c
+++ b/app/gegl/gimpoperationcagetransform.c
@@ -46,16 +46,16 @@ static gboolean gimp_operation_cage_transform_process (G
const GeglRectangle *roi);
static void gimp_operation_cage_transform_interpolate_source_coords_recurs
(GimpOperationCageTransform *oct,
- GeglBuffer *out_buf,
- const GeglRectangle *roi,
- GimpCoords p1_s,
- GimpCoords p1_d,
- GimpCoords p2_s,
- GimpCoords p2_d,
- GimpCoords p3_s,
- GimpCoords p3_d,
- gint recursion_depth,
- gfloat *coords);
+ GeglBuffer *out_buf,
+ const GeglRectangle *roi,
+ GimpCoords p1_s,
+ GimpCoords p1_d,
+ GimpCoords p2_s,
+ GimpCoords p2_d,
+ GimpCoords p3_s,
+ GimpCoords p3_d,
+ gint recursion_depth,
+ gfloat *coords);
static GimpCoords gimp_cage_transform_compute_destination (GimpCageConfig *config,
GeglBuffer *coef_buf,
GimpCoords coords);
diff --git a/app/gegl/gimpoperationcagetransform.h b/app/gegl/gimpoperationcagetransform.h
index e31a52d..35da429 100644
--- a/app/gegl/gimpoperationcagetransform.h
+++ b/app/gegl/gimpoperationcagetransform.h
@@ -42,7 +42,7 @@ typedef struct _GimpOperationCageTransformClass GimpOperationCageTransformClass;
struct _GimpOperationCageTransform
{
GeglOperationComposer parent_instance;
-
+
GimpCageConfig *config;
Babl *format_coords;
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]