diff options
Diffstat (limited to 'engines/agi/picture.cpp')
-rw-r--r-- | engines/agi/picture.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/agi/picture.cpp b/engines/agi/picture.cpp index 60a1bd0f91..62de1ef233 100644 --- a/engines/agi/picture.cpp +++ b/engines/agi/picture.cpp @@ -228,6 +228,9 @@ void PictureMgr::absoluteDrawLine() { INLINE int PictureMgr::isOkFillHere(int x, int y) { uint8 p; + x += _xOffset; + y += _yOffset; + if (x < 0 || x >= _width || y < 0 || y >= _height) return false; |