diff options
author | Retro-Junk | 2016-08-11 22:31:42 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-13 16:10:24 +0200 |
commit | 02f0692a62ab721703581fdb8f0d29051090faba (patch) | |
tree | bccc29e9ff53b7f3037084714c139246a6507da5 /engines | |
parent | 5c64e27692f041c231e08575d03642b4873c887e (diff) | |
download | scummvm-rg350-02f0692a62ab721703581fdb8f0d29051090faba.tar.gz scummvm-rg350-02f0692a62ab721703581fdb8f0d29051090faba.tar.bz2 scummvm-rg350-02f0692a62ab721703581fdb8f0d29051090faba.zip |
FULLPIPE: Use proper Surface coordinates
Diffstat (limited to 'engines')
-rw-r--r-- | engines/fullpipe/gfx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp index dcd5c33740..dd8d8b246d 100644 --- a/engines/fullpipe/gfx.cpp +++ b/engines/fullpipe/gfx.cpp @@ -806,7 +806,7 @@ bool Bitmap::isPixelHitAtPos(int x, int y) { if (!_surface) return false; - return ((*((int32 *)_surface->getBasePtr(x, y)) & 0xff000000) != 0); + return ((*((int32 *)_surface->getBasePtr(x - _x, y - _y)) & 0xff000000) != 0); } void Bitmap::decode(int32 *palette) { |