[gimp/goat-invasion: 530/608] app: use the original GimpTempBufs' format in gimpbrush-transform.c



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]