X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=image.c;h=7ef2326b0c5af4ea41f57a7cba31f5588920da49;hb=c77cc6c6dfd662e2baf695cee6d8e906b0764ea5;hp=3ecbea398671fe3ecb5310f5cae3f1183e5fdf1b;hpb=e13a8c596f2c51ca815773f89fee4f4f4f723f74;p=xonotic%2Fdarkplaces.git 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;