[gimp] app: get rid of x1, y1, x2, y2 in gimp_channel_real_flood()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: get rid of x1, y1, x2, y2 in gimp_channel_real_flood()
- Date: Sun, 10 Apr 2016 14:35:39 +0000 (UTC)
commit 076ef278d4bc5fa5c683a8baca3fe4d4134f3f98
Author: Michael Natterer <mitch gimp org>
Date: Sun Apr 10 16:34:53 2016 +0200
app: get rid of x1, y1, x2, y2 in gimp_channel_real_flood()
Use, x, y, width, height instead.
app/core/gimpchannel.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/app/core/gimpchannel.c b/app/core/gimpchannel.c
index 9da77e8..c37d14d 100644
--- a/app/core/gimpchannel.c
+++ b/app/core/gimpchannel.c
@@ -1596,14 +1596,11 @@ static void
gimp_channel_real_flood (GimpChannel *channel,
gboolean push_undo)
{
- gint x1, y1, x2, y2;
+ gint x, y, width, height;
- if (! gimp_item_bounds (GIMP_ITEM (channel), &x1, &y1, &x2, &y2))
+ if (! gimp_item_bounds (GIMP_ITEM (channel), &x, &y, &width, &height))
return;
- x2 += x1;
- y2 += y1;
-
if (gimp_channel_is_empty (channel))
return;
@@ -1614,9 +1611,9 @@ gimp_channel_real_flood (GimpChannel *channel,
gimp_gegl_apply_flood (gimp_drawable_get_buffer (GIMP_DRAWABLE (channel)),
NULL, NULL,
gimp_drawable_get_buffer (GIMP_DRAWABLE (channel)),
- GEGL_RECTANGLE (x1, y1, x2 - x1, y2 - y1));
+ GEGL_RECTANGLE (x, y, width, height));
- gimp_drawable_update (GIMP_DRAWABLE (channel), x1, y1, x2 - x1, y2 - y1);
+ gimp_drawable_update (GIMP_DRAWABLE (channel), x, y, width, height);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]