gimp r25661 - in trunk: . app/core
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r25661 - in trunk: . app/core
- Date: Wed, 14 May 2008 08:04:41 +0100 (BST)
Author: neo
Date: Wed May 14 07:04:41 2008
New Revision: 25661
URL: http://svn.gnome.org/viewvc/gimp?rev=25661&view=rev
Log:
2008-05-14 Sven Neumann <sven gimp org>
* app/core/gimpbrushclipboard.c
(gimp_brush_clipboard_buffer_changed): for an opaque buffer,
initialize the brush mask with 255 instead of 0. Fixes bug
#532886.
Modified:
trunk/ChangeLog
trunk/app/core/gimpbrushclipboard.c
Modified: trunk/app/core/gimpbrushclipboard.c
==============================================================================
--- trunk/app/core/gimpbrushclipboard.c (original)
+++ trunk/app/core/gimpbrushclipboard.c Wed May 14 07:04:41 2008
@@ -231,7 +231,12 @@
}
else
{
- temp_buf_data_clear (brush->mask);
+ PixelRegion maskPR;
+ guchar opaque = OPAQUE_OPACITY;
+
+ pixel_region_init_temp_buf (&maskPR, brush->mask,
+ 0, 0, width, height);
+ color_region (&maskPR, &opaque);
}
/* copy the color channels into the brush's pixmap */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]