[gimp/goat-invasion: 99/325] app: move variable to local scope
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/goat-invasion: 99/325] app: move variable to local scope
- Date: Fri, 30 Mar 2012 09:42:34 +0000 (UTC)
commit f5c933784c12aca048faf4b888ae351c3380327e
Author: Michael Natterer <mitch gimp org>
Date: Sat Mar 17 18:20:24 2012 +0100
app: move variable to local scope
app/core/gimpdrawable-blend.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimpdrawable-blend.c b/app/core/gimpdrawable-blend.c
index ee3fd16..b74c226 100644
--- a/app/core/gimpdrawable-blend.c
+++ b/app/core/gimpdrawable-blend.c
@@ -573,7 +573,6 @@ gradient_precalc_shapeburst (GimpImage *image,
gfloat *distp;
gint size;
gpointer pr;
- guchar white[1] = { OPAQUE_OPACITY };
/* allocate the distance map */
distR.tiles = tile_manager_new (PR->w, PR->h, sizeof (gfloat));
@@ -614,6 +613,8 @@ gradient_precalc_shapeburst (GimpImage *image,
}
else
{
+ guchar white[1] = { OPAQUE_OPACITY };
+
/* Otherwise, just fill the shapeburst to white */
color_region (&tempR, white);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]