gimp r27134 - in trunk: . app/core
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r27134 - in trunk: . app/core
- Date: Sun, 5 Oct 2008 13:54:37 +0000 (UTC)
Author: mitch
Date: Sun Oct 5 13:54:36 2008
New Revision: 27134
URL: http://svn.gnome.org/viewvc/gimp?rev=27134&view=rev
Log:
2008-10-05 Michael Natterer <mitch gimp org>
* app/core/gimpimage-contiguous-region.c: some formatting cleanups.
(find_contiguous_segment): changed to return gboolean not gint.
Modified:
trunk/ChangeLog
trunk/app/core/gimpimage-contiguous-region.c
Modified: trunk/app/core/gimpimage-contiguous-region.c
==============================================================================
--- trunk/app/core/gimpimage-contiguous-region.c (original)
+++ trunk/app/core/gimpimage-contiguous-region.c Sun Oct 5 13:54:36 2008
@@ -73,7 +73,7 @@
gint y,
guchar **s,
guchar **m);
-static gint find_contiguous_segment (GimpImage *image,
+static gboolean find_contiguous_segment (GimpImage *image,
const guchar *col,
PixelRegion *src,
PixelRegion *mask,
@@ -458,7 +458,7 @@
*m = tile_data_pointer (*m_tile, x, y);
}
-static int
+static gboolean
find_contiguous_segment (GimpImage *image,
const guchar *col,
PixelRegion *src,
@@ -604,7 +604,7 @@
Tile *tile;
GQueue *coord_stack;
- coord_stack = g_queue_new();
+ coord_stack = g_queue_new ();
/* To avoid excessive memory allocation (y, start, end) tuples are
* stored in interleaved format:
@@ -624,7 +624,7 @@
for (x = start + 1; x < end; x++)
{
tile = tile_manager_get_tile (mask->tiles, x, y, TRUE, FALSE);
- val = *(const guchar *) (tile_data_pointer (tile, x, y));
+ val = *(const guchar *) tile_data_pointer (tile, x, y);
tile_release (tile, FALSE);
if (val != 0)
continue;
@@ -654,7 +654,7 @@
}
}
}
- while (!g_queue_is_empty (coord_stack));
+ while (! g_queue_is_empty (coord_stack));
g_queue_free (coord_stack);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]