projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c57e508
)
Fix random glitches in transparent animations
author
Perttu Ahola
<celeron55@gmail.com>
Sun, 17 Jun 2012 21:21:23 +0000
(
00:21
+0300)
committer
Perttu Ahola
<celeron55@gmail.com>
Sun, 17 Jun 2012 21:21:23 +0000
(
00:21
+0300)
src/tile.cpp
patch
|
blob
|
history
diff --git
a/src/tile.cpp
b/src/tile.cpp
index 731f3712cdc78f8cbd112c859908b726f35f6ad2..6dbe4c63a606b29ba6b8cef22b8816ebf7e373c6 100644
(file)
--- 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<u32> dim = frame_size;
core::position2d<s32> pos_dst(0, 0);
core::position2d<s32> pos_src(0, frame_index * frame_size.Y);