[gegl: 2/25] transform-core.c: constant folding
- From: Nicolas Robidoux <nrobidoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl: 2/25] transform-core.c: constant folding
- Date: Sun, 25 Nov 2012 02:19:40 +0000 (UTC)
commit de16ae37fda03310df62cd4e1014fa8e5a045651
Author: Nicolas Robidoux <nrobidoux git gnome org>
Date: Fri Nov 23 20:37:50 2012 -0500
transform-core.c: constant folding
operations/transform/transform-core.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/operations/transform/transform-core.c b/operations/transform/transform-core.c
index 6d95a6c..e189f1d 100644
--- a/operations/transform/transform-core.c
+++ b/operations/transform/transform-core.c
@@ -389,8 +389,8 @@ 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);
- output->width = (gint) ceil ((double) max_x - 0.5) - output->x + (gint) 1;
- output->height = (gint) ceil ((double) max_y - 0.5) - output->y + (gint) 1;
+ output->width = (gint) ceil ((double) max_x + 0.5) - output->x;
+ output->height = (gint) ceil ((double) max_y + 0.5) - output->y;
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]