[gimp] app: Fix the code that disables outline to be a bit neater
- From: Alexia Death <alexiade src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: Fix the code that disables outline to be a bit neater
- Date: Tue, 16 Mar 2010 22:37:01 +0000 (UTC)
commit 58d82dcadcdcac2308c54c26f4dcddfdc5063248
Author: Alexia Death <alexiadeath gmail com>
Date: Wed Mar 17 00:36:19 2010 +0200
app: Fix the code that disables outline to be a bit neater
app/tools/gimpbrushtool.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/app/tools/gimpbrushtool.c b/app/tools/gimpbrushtool.c
index 108c432..6cb4015 100644
--- a/app/tools/gimpbrushtool.c
+++ b/app/tools/gimpbrushtool.c
@@ -300,7 +300,10 @@ gimp_brush_tool_draw_brush (GimpBrushTool *brush_tool,
g_return_if_fail (GIMP_IS_BRUSH_TOOL (brush_tool));
- if (! brush_tool->draw_brush)
+ /* if we are getting motion calls, the brush core will be busy drawing
+ * and output provides everything the outline could offer.
+ **/
+ if ((! brush_tool->draw_brush) || (brush_tool->in_motion))
return;
draw_tool = GIMP_DRAW_TOOL (brush_tool);
@@ -319,7 +322,7 @@ gimp_brush_tool_draw_brush (GimpBrushTool *brush_tool,
if (brush_core->brush_bound_segs)
gimp_brush_core_transform_bound_segs (brush_core, options);
- if ((brush_core->transformed_brush_bound_segs) && !(brush_tool->in_motion))
+ if (brush_core->transformed_brush_bound_segs)
{
GimpDisplayShell *shell = gimp_display_get_shell (draw_tool->display);
gdouble width = brush_core->transformed_brush_bound_width;
@@ -349,7 +352,7 @@ gimp_brush_tool_draw_brush (GimpBrushTool *brush_tool,
x, y,
FALSE);
}
- else if ((draw_fallback) || (brush_tool->in_motion))
+ else if (draw_fallback)
{
gimp_draw_tool_draw_handle (draw_tool, GIMP_HANDLE_CROSS,
x, y,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]