mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
Fix for bug #1031390 (FOA: Graphical corruption and possible crash in Atlantis Map)
svn-id: r15207
This commit is contained in:
@@ -2328,25 +2328,6 @@ void ScummEngine::startScene(int room, Actor *a, int objectNr) {
|
||||
|
||||
runExitScript();
|
||||
|
||||
if (_switchRoomEffect >= 130 && _switchRoomEffect <= 133) {
|
||||
// We're going to use scrollEffect(), so we'll need a copy of
|
||||
// the current VirtScreen zero.
|
||||
|
||||
VirtScreen *vs = &virtscr[0];
|
||||
|
||||
free(_scrollBuffer);
|
||||
_scrollBuffer = (byte *) malloc(vs->h * vs->w);
|
||||
|
||||
byte *src = vs->getPixels(0, 0);
|
||||
byte *dst = _scrollBuffer;
|
||||
|
||||
for (int y = 0; y < vs->h; y++) {
|
||||
memcpy(dst, src, vs->w);
|
||||
src += vs->pitch;
|
||||
dst += vs->w;
|
||||
}
|
||||
}
|
||||
|
||||
killScriptsAndResources();
|
||||
clearEnqueue();
|
||||
if (_version >= 4 && _heversion <= 60)
|
||||
|
||||
Reference in New Issue
Block a user