Make also the non-gui paintbrush (called when stroking a path) handle

1999-09-02  Tor Lillqvist  <tml@iki.fi>

* app/paintbrush.c (paintbrush_non_gui_default,
paintbrush_non_gui): Make also the non-gui paintbrush (called when
stroking a path) handle changing brushes, i.e. pixmap brush pipes.
This commit is contained in:
Tor Lillqvist 1999-09-02 00:17:25 +00:00 committed by Tor Lillqvist
parent 5475ff08a9
commit 388199215e
3 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,9 @@
1999-09-02 Tor Lillqvist <tml@iki.fi>
* app/paintbrush.c (paintbrush_non_gui_default,
paintbrush_non_gui): Make also the non-gui paintbrush (called when
stroking a path) handle changing brushes, i.e. pixmap brush pipes.
* libgimp/parasiteio.[ch]: New files. Types and functions related
to "standard" parasite types. Used for the
gimp-brush-pipe-parameters parasite that the gpb and psp plug-ins

View File

@ -517,6 +517,8 @@ paintbrush_non_gui_default (GimpDrawable *drawable,
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];
non_gui_paint_core.flags |= TOOL_CAN_HANDLE_CHANGING_BRUSH;
paintbrush_non_gui_paint_func (&non_gui_paint_core, drawable, 0);
for (i = 1; i < num_strokes; i++)
@ -566,6 +568,8 @@ paintbrush_non_gui (GimpDrawable *drawable,
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];
non_gui_paint_core.flags |= TOOL_CAN_HANDLE_CHANGING_BRUSH;
if (num_strokes == 1)
paintbrush_non_gui_paint_func (&non_gui_paint_core, drawable, 0);

View File

@ -517,6 +517,8 @@ paintbrush_non_gui_default (GimpDrawable *drawable,
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];
non_gui_paint_core.flags |= TOOL_CAN_HANDLE_CHANGING_BRUSH;
paintbrush_non_gui_paint_func (&non_gui_paint_core, drawable, 0);
for (i = 1; i < num_strokes; i++)
@ -566,6 +568,8 @@ paintbrush_non_gui (GimpDrawable *drawable,
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];
non_gui_paint_core.flags |= TOOL_CAN_HANDLE_CHANGING_BRUSH;
if (num_strokes == 1)
paintbrush_non_gui_paint_func (&non_gui_paint_core, drawable, 0);