summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/anim-atlas.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/anim-atlas.cpp b/src/anim-atlas.cpp
index c6193b5b..27051db7 100644
--- a/src/anim-atlas.cpp
+++ b/src/anim-atlas.cpp
@@ -158,6 +158,7 @@ void anim_atlas::make_bitmask_(const ImageView2D& tex, BitArray& array)
(unsigned char)(buf[7*4] >= amin) << 7);
dest[dst_idx] = value;
}
+ dest[(height-j-1)*width+i >> 3] = 0;
for (; i < width; i++)
{
unsigned char alpha = data[(j*stride + i*4)+3];