From b66dbee4198e847bd089c9b97d9e459dc4e4250c Mon Sep 17 00:00:00 2001 From: John Bintz Date: Wed, 28 Feb 2007 01:38:55 +0000 Subject: Change paint bucket tolerance toolbar to use percentages rather than color channel distance (bzr r2463) --- src/flood-context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/flood-context.cpp') diff --git a/src/flood-context.cpp b/src/flood-context.cpp index e737b90f9..d1c2ad65b 100644 --- a/src/flood-context.cpp +++ b/src/flood-context.cpp @@ -431,7 +431,7 @@ static void sp_flood_do_flood_fill(SPEventContext *event_context, GdkEvent *even unsigned char *orig_px = get_pixel(px, (int)pw[NR::X], (int)pw[NR::Y], width); for (int i = 0; i < 4; i++) { orig_color[i] = orig_px[i]; } - int tolerance = prefs_get_int_attribute_limited("tools.paintbucket", "tolerance", 1, 0, 255); + int tolerance = (255 * prefs_get_int_attribute_limited("tools.paintbucket", "tolerance", 1, 0, 100)) / 100; while (!fill_queue.empty() && !aborted) { NR::Point cp = fill_queue.front(); -- cgit v1.2.3