mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 21:06:59 -04:00
More warnings/minor fixes
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@836 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -107,7 +107,7 @@ void set_alpha(Image& img, Byte* al, const wxSize& alpha_size) {
|
||||
}
|
||||
|
||||
void set_alpha(Image& img, double alpha) {
|
||||
Byte b_alpha = alpha * 255;
|
||||
Byte b_alpha = Byte(alpha * 255);
|
||||
if (!img.HasAlpha()) {
|
||||
img.InitAlpha();
|
||||
memset(img.GetAlpha(), b_alpha, img.GetWidth() * img.GetHeight());
|
||||
|
||||
Reference in New Issue
Block a user