From f3f7b670d0572b3355df6ada4e512ae60b488e51 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Fri, 2 Jun 2006 10:54:53 +0000 Subject: - Fixed IMD transparency - Fixed SegFault due to uninitialized _multData2 - Removed left-over debug comment svn-id: r22830 --- engines/gob/game.cpp | 4 ++-- engines/gob/mult_v2.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'engines/gob') diff --git a/engines/gob/game.cpp b/engines/gob/game.cpp index 39c9fd537c..d69a1b8dad 100644 --- a/engines/gob/game.cpp +++ b/engines/gob/game.cpp @@ -2389,7 +2389,7 @@ int16 Game::viewImd(Game::Imd *imdPtr, int16 frame) { retVal |= *_imdFrameData; if (imdPtr->surfDesc == 0) continue; - if (!(_vm->_video->_extraMode && (imdPtr->surfDesc->vidMode == 0x13))) // MODIFIED... NOT! + if (!(_vm->_video->_extraMode && (imdPtr->surfDesc->vidMode == 0x13))) imdRenderFrame(imdPtr); else warning("GOB2 Stub! viedImd, sub_2C69A(imdPtr);"); @@ -2431,7 +2431,7 @@ void Game::imdDrawFrame(Imd *imdPtr, int16 frame, int16 x, int16 y) { y + imdPtr->stdY, 1); else _vm->_video->drawSprite(imdPtr->surfDesc, _vm->_draw->_frontSurface, 0, 0, - imdPtr->width - 1, imdPtr->height - 1, x, y, 1); + imdPtr->width - 1, imdPtr->height - 1, x, y, 0); } void Game::imdRenderFrame(Imd *imdPtr) { diff --git a/engines/gob/mult_v2.cpp b/engines/gob/mult_v2.cpp index e199df4a95..5b420ec668 100644 --- a/engines/gob/mult_v2.cpp +++ b/engines/gob/mult_v2.cpp @@ -41,6 +41,7 @@ namespace Gob { Mult_v2::Mult_v2(GobEngine *vm) : Mult_v1(vm) { int i; + _multData2 = 0; for (i = 0; i < 8; i++) _multDatas[i] = 0; } -- cgit v1.2.3