From 94ff2e45bbe25ae82a2fdaedac53d4844cd0a7bc Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 20 Oct 2004 07:18:40 +0000 Subject: [PATCH] Image_WriteTGARGBA now writes 8 as the attributes byte (which GIMP seems to need to recognize the alpha channel) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4677 d7cf8633-e32d-0410-b094-e92efae38249 --- image.c | 1 + 1 file changed, 1 insertion(+) diff --git a/image.c b/image.c index 3ecbea39..7ef2326b 100644 --- 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; -- 2.39.2