diff options
author | Alyssa Milburn | 2011-07-18 17:03:31 +0200 |
---|---|---|
committer | Alyssa Milburn | 2011-07-18 17:03:31 +0200 |
commit | 968db67b405328b6cfe36ad7c9765ecf5492bc27 (patch) | |
tree | 09e289558fc56c93bc2e5838b2d0ab409680efb8 /engines/composer | |
parent | 3891e9097d5cb59b93e5424184068a2b6569972b (diff) | |
download | scummvm-rg350-968db67b405328b6cfe36ad7c9765ecf5492bc27.tar.gz scummvm-rg350-968db67b405328b6cfe36ad7c9765ecf5492bc27.tar.bz2 scummvm-rg350-968db67b405328b6cfe36ad7c9765ecf5492bc27.zip |
COMPOSER: Fix Sprite::contains to check for non-transparent, not transparent.
Diffstat (limited to 'engines/composer')
-rw-r--r-- | engines/composer/composer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/composer/composer.cpp b/engines/composer/composer.cpp index 408936b85c..78819a92c5 100644 --- a/engines/composer/composer.cpp +++ b/engines/composer/composer.cpp @@ -142,7 +142,7 @@ bool Sprite::contains(const Common::Point &pos) const { if (adjustedPos.y < 0 || adjustedPos.y >= _surface.h) return false; byte *pixels = (byte *)_surface.pixels; - return (pixels[(_surface.h - adjustedPos.y - 1) * _surface.w + adjustedPos.x] == 0); + return (pixels[(_surface.h - adjustedPos.y - 1) * _surface.w + adjustedPos.x] != 0); } // TODO: params: x, y, event param for done |