mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
support for masks in choice styles
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@148 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -77,7 +77,7 @@ void mask_blend(Image& img1, const Image& img2, const Image& mask) {
|
||||
|
||||
void set_alpha(Image& img, const Image& img_alpha) {
|
||||
if (img.GetWidth() != img_alpha.GetWidth() || img.GetHeight() != img_alpha.GetHeight()) {
|
||||
throw InternalError(_("Image used with maks must have same size as mask"));
|
||||
throw Error(_("Image must have same size as mask"));
|
||||
}
|
||||
if (!img.HasAlpha()) img.InitAlpha();
|
||||
Byte *im = img.GetAlpha(), *al = img_alpha.GetData();
|
||||
|
||||
Reference in New Issue
Block a user