Make gradient brushes work again.

Fri Sep 10 00:18:17 EDT 1999 Adrian Likins <adrian@gimp.org>

        * app/paintbrush.c:  Make gradient brushes work again.
This commit is contained in:
EDT 1999 Adrian Likins 1999-09-10 04:21:00 +00:00 committed by Adrian Likins
parent ded287bf26
commit 2ed3a56155
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Fri Sep 10 00:18:17 EDT 1999 Adrian Likins <adrian@gimp.org>
* app/paintbrush.c: Make gradient brushes work again.
1999-09-09 Kelly Lynn Martin <kelly@poverty.bloomington.in.us>
* plug-ins/FractalExplorer/Callbacks.[ch]

View File

@ -460,12 +460,13 @@ paintbrush_motion (PaintCore *paint_core,
col[3] = a * 255.0;
paint_appl_mode = INCREMENTAL;
}
else
else if(!gradient_length)
{
gimage_get_foreground (gimage, drawable, col);
col[area->bytes - 1] = OPAQUE_OPACITY;
}
color_pixels (temp_buf_data (area), col,
area->width * area->height, area->bytes);
}

View File

@ -460,12 +460,13 @@ paintbrush_motion (PaintCore *paint_core,
col[3] = a * 255.0;
paint_appl_mode = INCREMENTAL;
}
else
else if(!gradient_length)
{
gimage_get_foreground (gimage, drawable, col);
col[area->bytes - 1] = OPAQUE_OPACITY;
}
color_pixels (temp_buf_data (area), col,
area->width * area->height, area->bytes);
}