From 48790c0751cb43d45ba5efb33557de8b213d6111 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 18 Jun 2012 00:21:23 +0300 Subject: [PATCH] Fix random glitches in transparent animations --- src/tile.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tile.cpp b/src/tile.cpp index 731f3712..6dbe4c63 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); -- 2.30.2