From: buliabyak Date: Mon, 3 Sep 2007 18:17:12 +0000 (+0000) Subject: reduce force of color tweaking X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ae063aa900871c363c2404caa23e9a5632945e09;p=inkscape.git reduce force of color tweaking --- diff --git a/src/tweak-context.cpp b/src/tweak-context.cpp index d457b1318..1e7379dea 100644 --- a/src/tweak-context.cpp +++ b/src/tweak-context.cpp @@ -795,7 +795,7 @@ sp_tweak_dilate (SPTweakContext *tc, NR::Point event_p, NR::Point p, NR::Point v if (radius == 0 || force == 0) { return false; } - double color_force = MIN(sqrt(force)/4.0, 1); + double color_force = MIN(sqrt(force)/20.0, 1); SPItem *item_at_point = SP_EVENT_CONTEXT(tc)->desktop->item_at_point(event_p, TRUE); Inkscape::XML::Node *tool_repr = inkscape_get_repr(INKSCAPE, "tools.tweak"); diff --git a/src/tweak-context.h b/src/tweak-context.h index 8fccaf970..268ea1fcf 100644 --- a/src/tweak-context.h +++ b/src/tweak-context.h @@ -30,7 +30,7 @@ class SPTweakContextClass; #define TC_MIN_PRESSURE 0.0 #define TC_MAX_PRESSURE 1.0 -#define TC_DEFAULT_PRESSURE 0.4 +#define TC_DEFAULT_PRESSURE 0.3 enum { TWEAK_MODE_PUSH,