From 48790c0751cb43d45ba5efb33557de8b213d6111 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 18 Jun 2012 00:21:23 +0300 Subject: Fix random glitches in transparent animations --- src/tile.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/tile.cpp b/src/tile.cpp index 731f3712c..6dbe4c63a 100644 --- a/src/tile.cpp +++ b/src/tile.cpp @@ -1679,6 +1679,9 @@ bool generate_image(std::string part_of_name, video::IImage *& baseimg, return false; } + // Fill target image with transparency + img->fill(video::SColor(0,0,0,0)); + core::dimension2d dim = frame_size; core::position2d pos_dst(0, 0); core::position2d pos_src(0, frame_index * frame_size.Y); -- cgit v1.2.3