[gimp/goat-invasion: 543/608] app: fix the image's projection to 8 bit until we got a GEGL projection



commit b2262469b34a1515be36cb53e837d87aa98a7442
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]