mirror of https://github.com/GNOME/gimp.git
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:
parent
ded287bf26
commit
2ed3a56155
|
@ -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>
|
1999-09-09 Kelly Lynn Martin <kelly@poverty.bloomington.in.us>
|
||||||
|
|
||||||
* plug-ins/FractalExplorer/Callbacks.[ch]
|
* plug-ins/FractalExplorer/Callbacks.[ch]
|
||||||
|
|
|
@ -460,12 +460,13 @@ paintbrush_motion (PaintCore *paint_core,
|
||||||
col[3] = a * 255.0;
|
col[3] = a * 255.0;
|
||||||
paint_appl_mode = INCREMENTAL;
|
paint_appl_mode = INCREMENTAL;
|
||||||
}
|
}
|
||||||
else
|
else if(!gradient_length)
|
||||||
{
|
{
|
||||||
gimage_get_foreground (gimage, drawable, col);
|
gimage_get_foreground (gimage, drawable, col);
|
||||||
col[area->bytes - 1] = OPAQUE_OPACITY;
|
col[area->bytes - 1] = OPAQUE_OPACITY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
color_pixels (temp_buf_data (area), col,
|
color_pixels (temp_buf_data (area), col,
|
||||||
area->width * area->height, area->bytes);
|
area->width * area->height, area->bytes);
|
||||||
}
|
}
|
||||||
|
|
|
@ -460,12 +460,13 @@ paintbrush_motion (PaintCore *paint_core,
|
||||||
col[3] = a * 255.0;
|
col[3] = a * 255.0;
|
||||||
paint_appl_mode = INCREMENTAL;
|
paint_appl_mode = INCREMENTAL;
|
||||||
}
|
}
|
||||||
else
|
else if(!gradient_length)
|
||||||
{
|
{
|
||||||
gimage_get_foreground (gimage, drawable, col);
|
gimage_get_foreground (gimage, drawable, col);
|
||||||
col[area->bytes - 1] = OPAQUE_OPACITY;
|
col[area->bytes - 1] = OPAQUE_OPACITY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
color_pixels (temp_buf_data (area), col,
|
color_pixels (temp_buf_data (area), col,
|
||||||
area->width * area->height, area->bytes);
|
area->width * area->height, area->bytes);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue