]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Image_WriteTGARGBA now writes 8 as the attributes byte (which GIMP seems to need...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 20 Oct 2004 07:18:40 +0000 (07:18 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 20 Oct 2004 07:18:40 +0000 (07:18 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4677 d7cf8633-e32d-0410-b094-e92efae38249

image.c

diff --git a/image.c b/image.c
index 3ecbea398671fe3ecb5310f5cae3f1183e5fdf1b..7ef2326b0c5af4ea41f57a7cba31f5588920da49 100644 (file)
--- a/image.c
+++ b/image.c
@@ -931,6 +931,7 @@ void Image_WriteTGARGBA (const char *filename, int width, int height, const qbyt
        buffer[14] = (height >> 0) & 0xFF;
        buffer[15] = (height >> 8) & 0xFF;
        buffer[16] = 32;        // pixel size
+       buffer[17] = 8; // transparent flag? (seems to be needed by gimp)
 
        // swap rgba to bgra and flip upside down
        out = buffer + 18;