[gegl] noise-perlin: use gegl_rectangle_infinite_plane in get_bounding box
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] noise-perlin: use gegl_rectangle_infinite_plane in get_bounding box
- Date: Mon, 19 Aug 2019 12:47:47 +0000 (UTC)
commit df6099a2192e8487468c0e33580505ef243d968d
Author: Øyvind Kolås <pippin gimp org>
Date: Mon Aug 19 14:46:39 2019 +0200
noise-perlin: use gegl_rectangle_infinite_plane in get_bounding box
As suggested by massimo in gimp#3808
operations/common/noise-perlin.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/operations/common/noise-perlin.c b/operations/common/noise-perlin.c
index d435f2f48..66aada1f9 100644
--- a/operations/common/noise-perlin.c
+++ b/operations/common/noise-perlin.c
@@ -49,13 +49,6 @@ prepare (GeglOperation *operation)
gegl_operation_set_format (operation, "output", babl_format ("Y float"));
}
-static GeglRectangle
-get_bounding_box (GeglOperation *operation)
-{
- GeglRectangle result = {-10000000, -10000000, 20000000, 20000000};
- return result;
-}
-
static gboolean
process (GeglOperation *operation,
void *out_buf,
@@ -91,6 +84,13 @@ process (GeglOperation *operation,
return TRUE;
}
+static GeglRectangle
+get_bounding_box (GeglOperation *operation)
+{
+ return gegl_rectangle_infinite_plane ();
+}
+
+
static void
gegl_op_class_init (GeglOpClass *klass)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]