app: Do not show brush outline when painting

It takes resourses and jsut gets in the way of seeing the real brush
This commit is contained in:
Alexia Death 2010-03-16 23:48:56 +02:00
parent bd2f852ac1
commit 031dc8e68a
2 changed files with 6 additions and 4 deletions

View File

@ -115,6 +115,7 @@ gimp_brush_tool_init (GimpBrushTool *brush_tool)
"context/context-brush-select-set");
brush_tool->show_cursor = TRUE;
brush_tool->in_motion = FALSE;
brush_tool->draw_brush = TRUE;
brush_tool->brush_x = 0.0;
brush_tool->brush_y = 0.0;
@ -194,7 +195,7 @@ gimp_brush_tool_motion (GimpTool *tool,
brush_tool->brush_x = coords->x;
brush_tool->brush_y = coords->y;
}
brush_tool->in_motion = TRUE;
gimp_draw_tool_resume (GIMP_DRAW_TOOL (tool));
}
@ -243,7 +244,7 @@ gimp_brush_tool_oper_update (GimpTool *tool,
coords);
}
}
brush_tool->in_motion = FALSE;
gimp_draw_tool_resume (GIMP_DRAW_TOOL (tool));
}
@ -318,7 +319,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)
if ((brush_core->transformed_brush_bound_segs) && !(brush_tool->in_motion))
{
GimpDisplayShell *shell = gimp_display_get_shell (draw_tool->display);
gdouble width = brush_core->transformed_brush_bound_width;
@ -348,7 +349,7 @@ gimp_brush_tool_draw_brush (GimpBrushTool *brush_tool,
x, y,
FALSE);
}
else if (draw_fallback)
else if ((draw_fallback) || (brush_tool->in_motion))
{
gimp_draw_tool_draw_handle (draw_tool, GIMP_HANDLE_CROSS,
x, y,

View File

@ -38,6 +38,7 @@ struct _GimpBrushTool
gboolean show_cursor;
gboolean draw_brush;
gboolean in_motion;
gdouble brush_x;
gdouble brush_y;
};