[gimp/metadata-browser] app: fix the image's projection to 8 bit	until we got a GEGL projection
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gimp/metadata-browser] app: fix the image's projection to 8 bit	until we got a GEGL projection
- Date: Wed, 12 Sep 2012 23:54:02 +0000 (UTC)
commit 3f5d4af9ea10043bfe8ebbec9c46a7180e3d3c39
Author: Michael Natterer <mitch gimp org>
Date:   Sun Apr 22 21:09:27 2012 +0200
    app: fix the image's projection to 8 bit until we got a GEGL projection
 app/core/gimpimage.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimpimage.c b/app/core/gimpimage.c
index 6cdc9f3..4356084 100644
--- a/app/core/gimpimage.c
+++ b/app/core/gimpimage.c
@@ -1291,10 +1291,20 @@ 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, TRUE);
+#else
+      return babl_format ("R'G'B'A u8");
+#endif
 
     case GIMP_GRAY:
+#if 0
+      /* XXX use real format once the legacy projection is gone */
       return gimp_image_get_format (image, GIMP_GRAY, TRUE);
+#else
+      return babl_format ("Y'A u8");
+#endif
     }
 
   g_assert_not_reached ();
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]