From cd3f548407f90128c95deda368f3fd46613e1d5d Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 22 Nov 2007 20:54:46 +0000 Subject: Objects in Mickey's Space Adventure are shown correctly now svn-id: r29612 --- engines/agi/picture.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines/agi/picture.cpp') 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; -- cgit v1.2.3