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:
twanvl
2006-12-22 19:29:51 +00:00
parent cf39deec24
commit 3eece6eb61
6 changed files with 22 additions and 4 deletions
+1 -1
View File
@@ -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();