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
..
2002-11-25 12:02:15 +00:00
2002-12-20 02:08:46 +00:00
2002-12-07 20:57:50 +00:00
2002-12-20 02:08:46 +00:00
2002-11-25 12:02:15 +00:00
2002-12-20 02:08:46 +00:00
2002-11-25 12:02:15 +00:00
2002-11-25 12:02:15 +00:00
2002-11-25 12:02:15 +00:00
2002-12-21 09:52:03 +00:00
2002-11-25 15:29:57 +00:00
2002-12-20 09:41:25 +00:00
2002-11-25 12:02:15 +00:00
2002-12-10 23:55:59 +00:00
2002-11-25 12:02:15 +00:00
2002-11-25 12:02:15 +00:00
2002-11-25 12:02:15 +00:00
2002-11-25 12:02:15 +00:00
2002-11-25 15:29:57 +00:00
2002-11-25 12:02:15 +00:00
2002-11-25 12:02:15 +00:00
2002-12-20 02:52:58 +00:00
2002-11-25 12:02:15 +00:00
2002-11-25 12:02:15 +00:00
2002-11-25 12:02:15 +00:00
2002-10-12 11:37:38 +00:00