diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-08-31 18:06:47 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-08-31 18:06:47 +0300 |
commit | f3630e95d6eb4f51e57cec7705764b788572e9ec (patch) | |
tree | b0a5d4472231938b932b9e136484c14b91f02e4b /src/tile.cpp | |
parent | 8887105ffda38d42eb7dd3958f574317d7ce2ca6 (diff) | |
download | minetest-f3630e95d6eb4f51e57cec7705764b788572e9ec.tar.gz minetest-f3630e95d6eb4f51e57cec7705764b788572e9ec.tar.bz2 minetest-f3630e95d6eb4f51e57cec7705764b788572e9ec.zip |
Use proper alpha blit in some more texture modifiers
Diffstat (limited to 'src/tile.cpp')
-rw-r--r-- | src/tile.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/tile.cpp b/src/tile.cpp index a9ded3891..f7f1779ca 100644 --- a/src/tile.cpp +++ b/src/tile.cpp @@ -1200,10 +1200,11 @@ bool generate_image(std::string part_of_name, video::IImage *& baseimg, // Position to copy the blitted from in the blitted image core::position2d<s32> pos_from(0,0); // Blit - image->copyToWithAlpha(baseimg, pos_to, + /*image->copyToWithAlpha(baseimg, pos_to, core::rect<s32>(pos_from, dim), video::SColor(255,255,255,255), - NULL); + NULL);*/ + blit_with_alpha(image, baseimg, pos_from, pos_to, dim); // Drop image image->drop(); } @@ -1368,10 +1369,11 @@ bool generate_image(std::string part_of_name, video::IImage *& baseimg, driver->createImage(video::ECF_A8R8G8B8, dim); img->copyTo(img2); img->drop(); - img2->copyToWithAlpha(baseimg, pos_base, + /*img2->copyToWithAlpha(baseimg, pos_base, core::rect<s32>(v2s32(0,0), dim), video::SColor(255,255,255,255), - NULL); + NULL);*/ + blit_with_alpha(img2, baseimg, v2s32(0,0), pos_base, dim); img2->drop(); } else |