mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 21:06:59 -04:00
Fixed zoom crash;
Fixed crash when mising symbol font git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@725 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -44,7 +44,7 @@ void AlphaMask::setAlpha(Bitmap& bmp) const {
|
||||
}
|
||||
|
||||
bool AlphaMask::isTransparent(int x, int y) const {
|
||||
assert(x >= 0 && y >= 0 && x < size.GetWidth() && y < size.GetHeight());
|
||||
if (x < 0 || y > 0 || x >= size.x || y >= size.y) return false;
|
||||
return alpha[x + y * size.GetWidth()] < 20;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user