changeset 1698:a51c2eaae9b8

Use img->ctransp for IFF ILBM mask, if set.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 05 Jun 2018 12:56:23 +0300
parents 1036b0dcccb5
children f71cd6691e05
files tools/libgfx.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tools/libgfx.c	Tue Jun 05 12:55:17 2018 +0300
+++ b/tools/libgfx.c	Tue Jun 05 12:56:23 2018 +0300
@@ -1689,7 +1689,7 @@
 
                 // Black out any pixels with mask bit 0
                 if (!data)
-                    dp[xc] = 0;
+                    dp[xc] = img->ctransp < 0 ? 0 : img->ctransp;
             }
 
             *read += bufLen;