Fixed AlphaMask::isTransparent

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@809 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-01-01 18:43:09 +00:00
parent ed060aeb04
commit 5f9845c167
+1 -1
View File
@@ -41,7 +41,7 @@ void AlphaMask::setAlpha(Bitmap& bmp) const {
}
bool AlphaMask::isTransparent(int x, int y) const {
if (x < 0 || y > 0 || x >= size.x || y >= size.y) return false;
if (x < 0 || y < 0 || x >= size.x || y >= size.y) return false;
return alpha[x + y * size.x] < 20;
}