[gegl: 14/25] sampler-nearest: unneeded string.h
- From: Nicolas Robidoux <nrobidoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl: 14/25] sampler-nearest: unneeded string.h
- Date: Sun, 25 Nov 2012 02:20:41 +0000 (UTC)
commit 45a7d5341ad32a8fdb90805f3b4a3836124091b7
Author: Nicolas Robidoux <nrobidoux git gnome org>
Date: Sat Nov 24 09:15:53 2012 -0500
sampler-nearest: unneeded string.h
gegl/buffer/gegl-sampler-nearest.c | 1 -
operations/transform/transform-core.c | 8 ++++++--
2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler-nearest.c b/gegl/buffer/gegl-sampler-nearest.c
index 06a60c7..3b82c87 100644
--- a/gegl/buffer/gegl-sampler-nearest.c
+++ b/gegl/buffer/gegl-sampler-nearest.c
@@ -16,7 +16,6 @@
*/
#include "config.h"
-#include <string.h>
#include <math.h>
#include <glib-object.h>
diff --git a/operations/transform/transform-core.c b/operations/transform/transform-core.c
index 56a0c5e..50e4ab2 100644
--- a/operations/transform/transform-core.c
+++ b/operations/transform/transform-core.c
@@ -505,6 +505,7 @@ gegl_transform_get_bounding_box (GeglOperation *op)
* output data, there would appear to be no need to enlarge it by
* context_rect. And yet it's done.
*/
+#if 0
if (!gegl_transform_matrix3_allow_fast_translate (&matrix))
{
in_rect.x += context_rect.x;
@@ -517,6 +518,7 @@ gegl_transform_get_bounding_box (GeglOperation *op)
in_rect.width += (context_rect.width - (gint) 1);
in_rect.height += (context_rect.height - (gint) 1);
}
+#endif
/*
* Convert indices to absolute positions.
@@ -627,8 +629,8 @@ gegl_transform_get_required_for_output (GeglOperation *op,
need_rect.x += context_rect.x;
need_rect.y += context_rect.y;
- need_rect.width += context_rect.width;
- need_rect.height += context_rect.height;
+ need_rect.width += context_rect.width - (gint) 1;
+ need_rect.height += context_rect.height - (gint) 1;
return need_rect;
}
@@ -672,10 +674,12 @@ gegl_transform_get_invalidated_by_change (GeglOperation *op,
return region;
}
+#if 0
region.x += context_rect.x;
region.y += context_rect.y;
region.width += context_rect.width;
region.height += context_rect.height;
+#endif
affected_points [0] = region.x + (gdouble) 0.5;
affected_points [1] = region.y + (gdouble) 0.5;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]