app: add XXX comments about hardcoded or NULL formats

This commit is contained in:
Michael Natterer
2012-04-21 08:36:57 +02:00
parent 9146aeaa22
commit a61885f324
2 changed files with 2 additions and 0 deletions

View File

@ -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);

View File

@ -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++)