From 72edefea5146aa09e31e330b93651ac1ac0f5ea5 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Sun, 15 Apr 2007 12:46:10 +0000 Subject: Fixed another IMD drawing glitch (noticeable after Ooya gets his magic bag back) svn-id: r26492 --- engines/gob/imd.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/gob/imd.cpp b/engines/gob/imd.cpp index d9faba5b61..c1a932a601 100644 --- a/engines/gob/imd.cpp +++ b/engines/gob/imd.cpp @@ -1011,6 +1011,8 @@ uint32 ImdPlayer::view(Imd *imdPtr, int16 frame) { _top = yBak = imdPtr->y; _bottom = heightBak= imdPtr->height; _right = widthBak = imdPtr->width; + _right += _left - 1; + _bottom += _top - 1; if ((frame == 0) && (imdPtr->verMin & 0x800)) _vm->_video->setPalette(imdPtr->palette); @@ -1106,7 +1108,7 @@ uint32 ImdPlayer::view(Imd *imdPtr, int16 frame) { cmd = _vm->_dataIO->readUint16(imdPtr->handle); - // Clear sound slice + // Empty sound slice } else if (!hasNextCmd && (!_noSound)) { soundBuf = new byte[_soundSliceSize]; assert(soundBuf); -- cgit v1.2.3