Bug 683381 - Inverted alpha behavior of 16-bit Targa files

file-tga.c (upsample): swap alpha behavior
This commit is contained in:
Mike Gran 2012-09-04 23:38:42 -07:00 committed by Michael Natterer
parent 9ab3abc98b
commit dc00fb57a0
1 changed files with 1 additions and 1 deletions

View File

@ -812,7 +812,7 @@ upsample (guchar *dest,
if (alpha)
{
dest[3] = (src[1] & 0x80) ? 0 : 255;
dest[3] = (src[1] & 0x80) ? 255 : 0;
dest += 4;
}
else