diff options
Diffstat (limited to 'engines')
-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 |