summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3d7616e)
raw | patch | inline | side by side (parent: 3d7616e)
author | johncoswell <johncoswell@users.sourceforge.net> | |
Thu, 19 Apr 2007 21:40:06 +0000 (21:40 +0000) | ||
committer | johncoswell <johncoswell@users.sourceforge.net> | |
Thu, 19 Apr 2007 21:40:06 +0000 (21:40 +0000) |
src/flood-context.cpp | patch | blob | history |
diff --git a/src/flood-context.cpp b/src/flood-context.cpp
index 423f60980302a7012625f9511cd11478e8d5dcaf..a25ab2196615edea8c731bf08e8b1dc08d0ae27f 100644 (file)
--- a/src/flood-context.cpp
+++ b/src/flood-context.cpp
event_context->hot_y = 30;
event_context->xp = 0;
event_context->yp = 0;
- event_context->tolerance = 0;
+ event_context->tolerance = 4;
event_context->within_tolerance = false;
event_context->item_to_select = NULL;
@@ -667,7 +667,10 @@ static void sp_flood_do_flood_fill(SPEventContext *event_context, GdkEvent *even
merge_pixel_with_background(orig_color, dtc, merged_orig);
- fill_queue.push_front(color_point);
+ unsigned char *trace_t = get_pixel(trace_px, (int)color_point[NR::X], (int)color_point[NR::Y], width);
+ if (trace_t[0] != 255) {
+ fill_queue.push_front(color_point);
+ }
while (!fill_queue.empty() && !aborted) {
NR::Point cp = fill_queue.front();