diff options
author | Filippos Karapetis | 2007-11-22 20:54:46 +0000 |
---|---|---|
committer | Filippos Karapetis | 2007-11-22 20:54:46 +0000 |
commit | cd3f548407f90128c95deda368f3fd46613e1d5d (patch) | |
tree | b4676ac03d2ee65e48fa215e8c5ef004c7955bfb /engines/agi/picture.cpp | |
parent | 78d347e00832648ef160d8a7f76127dec312ce68 (diff) | |
download | scummvm-rg350-cd3f548407f90128c95deda368f3fd46613e1d5d.tar.gz scummvm-rg350-cd3f548407f90128c95deda368f3fd46613e1d5d.tar.bz2 scummvm-rg350-cd3f548407f90128c95deda368f3fd46613e1d5d.zip |
Objects in Mickey's Space Adventure are shown correctly now
svn-id: r29612
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; |