From f447cb8efe5e2bcfe86109f476d424c02e388e04 Mon Sep 17 00:00:00 2001 From: "Eric L. Hernes" Date: Tue, 9 Dec 1997 01:39:08 +0000 Subject: [PATCH] make the airbrush behave like paintbrush when called non-interactively... just try to draw a box non-interactively with the airbrush before this patch... Eric. --- app/airbrush.c | 1 + app/paint/gimpairbrush.c | 1 + app/tools/airbrush.c | 1 + app/tools/gimpairbrushtool.c | 1 + 4 files changed, 4 insertions(+) diff --git a/app/airbrush.c b/app/airbrush.c index c55da0f851..d93202da15 100644 --- a/app/airbrush.c +++ b/app/airbrush.c @@ -388,6 +388,7 @@ airbrush_invoker (Argument *args) non_gui_paint_core.startx = non_gui_paint_core.lastx = stroke_array[0]; non_gui_paint_core.starty = non_gui_paint_core.lasty = stroke_array[1]; + num_strokes /= 2; if (num_strokes == 1) airbrush_non_gui_paint_func (&non_gui_paint_core, drawable_id, 0); diff --git a/app/paint/gimpairbrush.c b/app/paint/gimpairbrush.c index c55da0f851..d93202da15 100644 --- a/app/paint/gimpairbrush.c +++ b/app/paint/gimpairbrush.c @@ -388,6 +388,7 @@ airbrush_invoker (Argument *args) non_gui_paint_core.startx = non_gui_paint_core.lastx = stroke_array[0]; non_gui_paint_core.starty = non_gui_paint_core.lasty = stroke_array[1]; + num_strokes /= 2; if (num_strokes == 1) airbrush_non_gui_paint_func (&non_gui_paint_core, drawable_id, 0); diff --git a/app/tools/airbrush.c b/app/tools/airbrush.c index c55da0f851..d93202da15 100644 --- a/app/tools/airbrush.c +++ b/app/tools/airbrush.c @@ -388,6 +388,7 @@ airbrush_invoker (Argument *args) non_gui_paint_core.startx = non_gui_paint_core.lastx = stroke_array[0]; non_gui_paint_core.starty = non_gui_paint_core.lasty = stroke_array[1]; + num_strokes /= 2; if (num_strokes == 1) airbrush_non_gui_paint_func (&non_gui_paint_core, drawable_id, 0); diff --git a/app/tools/gimpairbrushtool.c b/app/tools/gimpairbrushtool.c index c55da0f851..d93202da15 100644 --- a/app/tools/gimpairbrushtool.c +++ b/app/tools/gimpairbrushtool.c @@ -388,6 +388,7 @@ airbrush_invoker (Argument *args) non_gui_paint_core.startx = non_gui_paint_core.lastx = stroke_array[0]; non_gui_paint_core.starty = non_gui_paint_core.lasty = stroke_array[1]; + num_strokes /= 2; if (num_strokes == 1) airbrush_non_gui_paint_func (&non_gui_paint_core, drawable_id, 0);