blender/source/blender/imbuf
Kent Mein 9bb91f9e57 Fix so that rgba targa files view correctly in gimp:
Submitted to bf-committers by Chris Want

Kent

Index: targa.c
===================================================================
RCS file: /cvs01/blender/source/blender/imbuf/intern/targa.c,v
retrieving revision 1.4
diff -u -r1.4 targa.c
--- targa.c     2002/12/20 01:29:14     1.4
+++ targa.c     2002/12/21 09:50:24
@@ -289,6 +289,12 @@

        if (flags & IB_ttob) buf[17] ^= 0x20;

+        /* Don't forget to indicate that your 32 bit
+         * targa uses 8 bits for the alpha channel! */
+        if (ibuf->depth==32) {
+           buf[17] |= 0x08;
+        }
+
        if (write(file, buf, 18) != 18) return (0);
        if (ibuf->cmap){
                for (i = 0 ; i<ibuf->maxcol ; i++){
2002-12-21 09:52:03 +00:00
..
intern Fix so that rgba targa files view correctly in gimp: 2002-12-21 09:52:03 +00:00
IMB_imbuf_types.h Did all of the .h's in source 2002-11-25 11:16:17 +00:00
IMB_imbuf.h sgefants patch to remove the License Key stuff. 2002-12-06 19:48:37 +00:00
Makefile Initial revision 2002-10-12 11:37:38 +00:00