From 1c187bc39bc6924eb53437b9cbfda98f1343942c Mon Sep 17 00:00:00 2001 From: Albert Cahalan Date: Mon, 13 Dec 2004 01:25:06 +0000 Subject: [PATCH] no need to assign twice --- src/tuxpaint.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index a7aa6ef83..793269c22 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -3539,14 +3539,11 @@ trysat:; static multichan *find_most_saturated(double initial_hue, multichan * work, - unsigned i, double * hue_range_ptr) + unsigned num, double * hue_range_ptr) { // find the most saturated pixel near the initial hue guess multichan *key_color_ptr = NULL; double hue_range; - unsigned int orig_i; - - orig_i = i; switch (inf_stamps[cur_stamp]->tinter) { @@ -3581,11 +3578,9 @@ hue_range_retry:; upper_hue_2 = upper_hue_1 - 2 * M_PI; } - i = orig_i; + i = num; while (i--) { - //if (i < 10 || i > 20000) - // printf("%d\n", i); fflush(stdout); mc = work + i; // if not in the first range, and not in the second range, skip this one