[gegl: 3/25] transform-core.c: clearer comments



commit d36dcbc4a8dc1139bd02e01f82d3e254a0a177fe
Author: Nicolas Robidoux <nrobidoux git gnome org>
Date:   Fri Nov 23 20:39:00 2012 -0500

    transform-core.c: clearer comments

 operations/transform/transform-core.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/operations/transform/transform-core.c b/operations/transform/transform-core.c
index e189f1d..a36b96b 100644
--- a/operations/transform/transform-core.c
+++ b/operations/transform/transform-core.c
@@ -389,6 +389,10 @@ gegl_transform_bounding_box (const gdouble       *points,
 
   output->x = (gint) floor ((double) min_x - 0.5);
   output->y = (gint) floor ((double) min_y - 0.5);
+  /*
+   * Width and height are numbers of pixels. So, they are one more
+   * than the distance between the first and last indices.
+   */
   output->width  = (gint) ceil ((double) max_x + 0.5) - output->x;
   output->height = (gint) ceil ((double) max_y + 0.5) - output->y;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]