# HG changeset patch # User Matti Hamalainen # Date 1528192583 -10800 # Node ID a51c2eaae9b830f9975fe7e84a727989d6e34a5b # Parent 1036b0dcccb5c5f781ed18c849d6e2f127f66b48 Use img->ctransp for IFF ILBM mask, if set. diff -r 1036b0dcccb5 -r a51c2eaae9b8 tools/libgfx.c --- 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;