cosmetics

svn path=/trunk/; revision=22202
This commit is contained in:
Sven Neumann 2007-03-30 10:18:05 +00:00
parent 05d6439d9d
commit 04b0433c84
1 changed files with 10 additions and 10 deletions

View File

@ -2993,8 +2993,8 @@ compute_border (gint16 *circ,
guint16 xradius, guint16 xradius,
guint16 yradius) guint16 yradius)
{ {
gint32 i; gint32 i;
gint32 diameter = xradius * 2 + 1; gint32 diameter = xradius * 2 + 1;
gdouble tmp; gdouble tmp;
for (i = 0; i < diameter; i++) for (i = 0; i < diameter; i++)
@ -3006,8 +3006,8 @@ compute_border (gint16 *circ,
else else
tmp = 0.0; tmp = 0.0;
circ[i] = RINT (yradius / (gdouble) xradius * circ[i] = RINT (yradius /
sqrt (xradius * xradius - tmp * tmp)); (gdouble) xradius * sqrt (SQR (xradius) - SQR (tmp)));
} }
} }
@ -3532,10 +3532,10 @@ dilate_region (PixelRegion *region)
/* Computes whether pixels in `buf[1]', if they are selected, have neighbouring /* Computes whether pixels in `buf[1]', if they are selected, have neighbouring
pixels that are unselected. Put result in `transition'. */ pixels that are unselected. Put result in `transition'. */
static void static void
compute_transition (guchar *transition, compute_transition (guchar *transition,
guchar **buf, guchar **buf,
gint32 width, gint32 width,
gboolean edge_lock) gboolean edge_lock)
{ {
register gint32 x = 0; register gint32 x = 0;