[gimp/gimp-2-8] Bug 683381 - Inverted alpha behavior of 16-bit Targa files
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] Bug 683381 - Inverted alpha behavior of 16-bit Targa files
- Date: Wed, 5 Sep 2012 20:53:07 +0000 (UTC)
commit e2915eba7c3bc5761747a46b1e15550d30fe19fa
Author: Mike Gran <spk121 yahoo com>
Date: Tue Sep 4 23:38:42 2012 -0700
Bug 683381 - Inverted alpha behavior of 16-bit Targa files
file-tga.c (upsample): swap alpha behavior
(cherry picked from commit dc00fb57a0e50a9231515aa473bccc1e449aed10)
plug-ins/common/file-tga.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/common/file-tga.c b/plug-ins/common/file-tga.c
index c1d05dd..a490b62 100644
--- a/plug-ins/common/file-tga.c
+++ b/plug-ins/common/file-tga.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]