From 5f9845c16777d8045ba9653c0d3a6214f9805958 Mon Sep 17 00:00:00 2001 From: twanvl Date: Tue, 1 Jan 2008 18:43:09 +0000 Subject: [PATCH] Fixed AlphaMask::isTransparent git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@809 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/gfx/mask_image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gfx/mask_image.cpp b/src/gfx/mask_image.cpp index 5319b509..14ddb681 100644 --- a/src/gfx/mask_image.cpp +++ b/src/gfx/mask_image.cpp @@ -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; }