[gegl] fractal-trace: Code cleanups
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] fractal-trace: Code cleanups
- Date: Thu, 30 Jun 2011 16:27:11 +0000 (UTC)
commit a1a8429132a926d7bb5a9c5534402ce63a9dd96e
Author: Mukund Sivaraman <muks banu com>
Date: Thu Jun 30 21:14:52 2011 +0530
fractal-trace: Code cleanups
operations/workshop/fractal-trace.c | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/operations/workshop/fractal-trace.c b/operations/workshop/fractal-trace.c
index c009972..ee11c8e 100644
--- a/operations/workshop/fractal-trace.c
+++ b/operations/workshop/fractal-trace.c
@@ -271,13 +271,10 @@ get_bounding_box (GeglOperation *operation)
GeglRectangle result = {0,0,0,0};
GeglRectangle *in_rect = gegl_operation_source_get_bounding_box (operation, "input");
- if (!in_rect){
+ if (!in_rect)
return result;
- }
- gegl_rectangle_copy(&result, in_rect);
-
- return result;
+ return *in_rect;
}
@@ -288,9 +285,7 @@ get_required_for_output (GeglOperation *operation,
const gchar *input_pad,
const GeglRectangle *roi)
{
- GeglRectangle result = get_effective_area (operation);
-
- return result;
+ return get_effective_area (operation);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]