[gimp] app: create the paint tools' paint_buffer as RGBA float
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: create the paint tools' paint_buffer as RGBA float
- Date: Fri, 21 Sep 2012 08:53:34 +0000 (UTC)
commit eb2f638e7dc14291a0d8cecba6ee959251261009
Author: Michael Natterer <mitch gimp org>
Date: Fri Sep 21 10:51:23 2012 +0200
app: create the paint tools' paint_buffer as RGBA float
instead of the drawable's native format plus alpha, because we access
these buffers as RGBA float later.
app/paint/gimpbrushcore.c | 4 ++--
app/paint/gimpink.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/app/paint/gimpbrushcore.c b/app/paint/gimpbrushcore.c
index 481f98c..c90432d 100644
--- a/app/paint/gimpbrushcore.c
+++ b/app/paint/gimpbrushcore.c
@@ -819,10 +819,10 @@ gimp_brush_core_get_paint_buffer (GimpPaintCore *paint_core,
/* configure the canvas buffer */
if ((x2 - x1) && (y2 - y1))
{
- const Babl *format = gimp_drawable_get_format_with_alpha (drawable);
GimpTempBuf *temp_buf;
- temp_buf = gimp_temp_buf_new ((x2 - x1), (y2 - y1), format);
+ temp_buf = gimp_temp_buf_new ((x2 - x1), (y2 - y1),
+ babl_format ("RGBA float"));
*paint_buffer_x = x1;
*paint_buffer_y = y1;
diff --git a/app/paint/gimpink.c b/app/paint/gimpink.c
index 9eddd17..b84fdd0 100644
--- a/app/paint/gimpink.c
+++ b/app/paint/gimpink.c
@@ -219,10 +219,10 @@ gimp_ink_get_paint_buffer (GimpPaintCore *paint_core,
/* configure the canvas buffer */
if ((x2 - x1) && (y2 - y1))
{
- const Babl *format = gimp_drawable_get_format_with_alpha (drawable);
GimpTempBuf *temp_buf;
- temp_buf = gimp_temp_buf_new ((x2 - x1), (y2 - y1), format);
+ temp_buf = gimp_temp_buf_new ((x2 - x1), (y2 - y1),
+ babl_format ("RGBA float"));
*paint_buffer_x = x1;
*paint_buffer_y = y1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]