From 720961565aa33b478b2593521207d8f416271ffd Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 2 Sep 2005 20:52:14 +0000 Subject: Fix bug #1258489 "ITE: Rif's tail remains in door at Alamma's house" svn-id: r18739 --- saga/scene.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'saga') diff --git a/saga/scene.cpp b/saga/scene.cpp index 951e3896b2..1e1ac21434 100644 --- a/saga/scene.cpp +++ b/saga/scene.cpp @@ -1189,11 +1189,18 @@ void Scene::endScene() { _vm->_script->_skipSpeeches = false; // Copy current screen to render buffer so inset rooms will get proper background - backBuffer= _vm->_gfx->getBackBuffer(); backGroundSurface = _vm->_render->getBackGroundSurface(); - backBuffer->getRect(rect); + if (!(_sceneDescription.flags & kSceneFlagISO)) { + BGInfo bgInfo; + + _vm->_scene->getBGInfo(bgInfo); + backGroundSurface->blit(bgInfo.bounds, bgInfo.buffer); + } else { + backBuffer = _vm->_gfx->getBackBuffer(); + backBuffer->getRect(rect); + backGroundSurface->blit(rect, (const byte *)backBuffer->pixels); + } - backGroundSurface->blit(rect, (const byte *)backBuffer->pixels); // Free scene background if (_bg.loaded) { free(_bg.buf); -- cgit v1.2.3