Commit 2a99ef92 authored by twanvl's avatar twanvl

Fixed AlphaMask::isTransparent

parent 392a09a3
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment