diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/fullpipe/gfx.cpp | 16 | ||||
-rw-r--r-- | engines/fullpipe/gfx.h | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp index de2b81d76c..63245a19e0 100644 --- a/engines/fullpipe/gfx.cpp +++ b/engines/fullpipe/gfx.cpp @@ -213,6 +213,22 @@ bool PictureObject::setPicAniInfo(PicAniInfo *picAniInfo) { return false; } +bool PictureObject::isPointInside(int x, int y) { + bool res; + int oldx = _picture->_x; + int oldy = _picture->_y; + + _picture->_x = _ox; + _picture->_y = _oy; + + res = _picture->isPointInside(x, y); + + _picture->_x = oldx; + _picture->_y = oldy; + + return res; +} + GameObject::GameObject() { _okeyCode = 0; _flags = 0; diff --git a/engines/fullpipe/gfx.h b/engines/fullpipe/gfx.h index 4c4ed3034d..45414eb331 100644 --- a/engines/fullpipe/gfx.h +++ b/engines/fullpipe/gfx.h @@ -159,6 +159,7 @@ class PictureObject : public GameObject { void draw(); bool setPicAniInfo(PicAniInfo *picAniInfo); + bool isPointInside(int x, int y); }; class Background : public CObject { |