[gimp/goat-invasion: 515/526] app: add XXX comments about hardcoded or NULL formats
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/goat-invasion: 515/526] app: add XXX comments about hardcoded or NULL formats
- Date: Sun, 22 Apr 2012 13:42:33 +0000 (UTC)
commit ddcc54d8954b21c781f86b705cceece571f900d5
Author: Michael Natterer <mitch gimp org>
Date: Sat Apr 21 08:36:57 2012 +0200
app: add XXX comments about hardcoded or NULL formats
app/core/gimpboundary.c | 1 +
app/core/gimpimage-crop.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimpboundary.c b/app/core/gimpboundary.c
index 2da50ef..0463778 100644
--- a/app/core/gimpboundary.c
+++ b/app/core/gimpboundary.c
@@ -680,6 +680,7 @@ generate_boundary (GeglBuffer *buffer,
boundary = gimp_boundary_new (region);
+ /* XXX use an appropriate format here */
format = gegl_buffer_get_format (buffer);
bpp = babl_format_get_bytes_per_pixel (format);
diff --git a/app/core/gimpimage-crop.c b/app/core/gimpimage-crop.c
index 086849f..cb36f40 100644
--- a/app/core/gimpimage-crop.c
+++ b/app/core/gimpimage-crop.c
@@ -389,6 +389,7 @@ gimp_image_crop_auto_shrink (GimpImage *image,
for (y = y1; y < y2 && !abort; y++)
{
rect.y = y;
+ /* XXX use an appropriate format here */
gegl_buffer_get (buffer, &rect, 1.0, NULL, buf,
GEGL_AUTO_ROWSTRIDE, GEGL_ABYSS_NONE);
for (x = 0; x < width && !abort; x++)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]