[gimp] app: keep the projection around in the image's layer format
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: keep the projection around in the image's layer format
- Date: Mon, 30 Jul 2012 14:01:20 +0000 (UTC)
commit 16798d839ce4ce43736bf1d9c927ef7b1a7f06e2
Author: Michael Natterer <mitch gimp org>
Date: Mon Jul 30 16:00:02 2012 +0200
app: keep the projection around in the image's layer format
so it's not always 8 bit and can be used to copy real data from in all
precisions.
app/core/gimpimage.c | 16 ++++------------
1 files changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/app/core/gimpimage.c b/app/core/gimpimage.c
index c1e803d..be079a9 100644
--- a/app/core/gimpimage.c
+++ b/app/core/gimpimage.c
@@ -1270,20 +1270,12 @@ gimp_image_get_proj_format (GimpProjectable *projectable)
{
case GIMP_RGB:
case GIMP_INDEXED:
-#if 0
- /* XXX use real format once the legacy projection is gone */
- return gimp_image_get_format (image, GIMP_RGB, GIMP_PRECISION_U8, TRUE);
-#else
- return babl_format ("R'G'B'A u8");
-#endif
+ return gimp_image_get_format (image, GIMP_RGB,
+ gimp_image_get_precision (image), TRUE);
case GIMP_GRAY:
-#if 0
- /* XXX use real format once the legacy projection is gone */
- return gimp_image_get_format (image, GIMP_GRAY, GIMP_PRECISION_U8, TRUE);
-#else
- return babl_format ("Y'A u8");
-#endif
+ return gimp_image_get_format (image, GIMP_GRAY,
+ gimp_image_get_precision (image), TRUE);
}
g_assert_not_reached ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]