[gimp/goat-invasion: 530/608] app: use the original GimpTempBufs' format in gimpbrush-transform.c
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/goat-invasion: 530/608] app: use the original GimpTempBufs' format in gimpbrush-transform.c
- Date: Fri, 27 Apr 2012 21:09:55 +0000 (UTC)
commit 868933180aa5278225a3188344fd6709176437d9
Author: Michael Natterer <mitch gimp org>
Date: Sun Apr 22 16:28:02 2012 +0200
app: use the original GimpTempBufs' format in gimpbrush-transform.c
app/core/gimpbrush-transform.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimpbrush-transform.c b/app/core/gimpbrush-transform.c
index c13d64e..bfbe97d 100644
--- a/app/core/gimpbrush-transform.c
+++ b/app/core/gimpbrush-transform.c
@@ -189,7 +189,8 @@ gimp_brush_real_transform_mask (GimpBrush *brush,
gimp_matrix3_translate (&matrix, -x, -y);
gimp_matrix3_invert (&matrix);
- result = gimp_temp_buf_new (dest_width, dest_height, babl_format ("Y u8"));
+ result = gimp_temp_buf_new (dest_width, dest_height,
+ brush->mask->format);
dest = gimp_temp_buf_get_data (result);
src = gimp_temp_buf_get_data (source);
@@ -487,7 +488,7 @@ gimp_brush_real_transform_pixmap (GimpBrush *brush,
gimp_matrix3_invert (&matrix);
result = gimp_temp_buf_new (dest_width, dest_height,
- babl_format ("R'G'B' u8"));
+ brush->pixmap->format);
dest = gimp_temp_buf_get_data (result);
src = gimp_temp_buf_get_data (source);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]