Revert small part of scumm/saveload.cpp revision 1.129.
Fixes bug #884171 - DOTT: Transition effect glitch (regression) svn-id: r14240
This commit is contained in:
parent
3aa5d9dd06
commit
9563fb9c6e
1 changed files with 7 additions and 1 deletions
|
@ -92,6 +92,7 @@ bool ScummEngine::loadState(int slot, bool compat) {
|
|||
SaveFile *in;
|
||||
int i, j;
|
||||
SaveGameHeader hdr;
|
||||
int sb, sh;
|
||||
byte *roomptr;
|
||||
|
||||
makeSavegameName(filename, slot, compat);
|
||||
|
@ -272,13 +273,18 @@ bool ScummEngine::loadState(int slot, bool compat) {
|
|||
camera._last.x = camera._cur.x;
|
||||
}
|
||||
|
||||
sb = _screenB;
|
||||
sh = _screenH;
|
||||
|
||||
// Restore the virtual screens and force a fade to black.
|
||||
initScreens(_screenB, _screenH);
|
||||
initScreens(kMainVirtScreen, _screenHeight);
|
||||
VirtScreen *vs = &virtscr[0];
|
||||
memset(vs->screenPtr + vs->xstart, 0, vs->width * vs->height);
|
||||
vs->setDirtyRange(0, vs->height);
|
||||
updateDirtyScreen(kMainVirtScreen);
|
||||
updatePalette();
|
||||
initScreens(sb, sh);
|
||||
|
||||
_completeScreenRedraw = true;
|
||||
|
||||
// Reset charset mask
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue