Fix screen scrolling glitch when looking at the top of closet in parents room of DOS version of fbear
svn-id: r23174
This commit is contained in:
parent
15c26ed5eb
commit
bc6306192d
5 changed files with 16 additions and 10 deletions
|
@ -3003,16 +3003,6 @@ void ScummEngine::fadeOut(int effect) {
|
|||
if (!(_game.features & GF_NEW_CAMERA))
|
||||
camera._last.x = camera._cur.x;
|
||||
|
||||
if (_switchRoomEffect >= 130 && _switchRoomEffect <= 133) {
|
||||
// We're going to use scrollEffect(), so we'll need a copy of
|
||||
// the current VirtScreen zero.
|
||||
|
||||
free(_scrollBuffer);
|
||||
_scrollBuffer = (byte *) malloc(vs->h * vs->pitch);
|
||||
memcpy(_scrollBuffer, vs->getPixels(0, 0), vs->h * vs->pitch);
|
||||
}
|
||||
|
||||
|
||||
if (_screenEffectFlag && effect != 0) {
|
||||
|
||||
// Fill screen 0 with black
|
||||
|
@ -3054,6 +3044,18 @@ void ScummEngine::fadeOut(int effect) {
|
|||
_screenEffectFlag = false;
|
||||
}
|
||||
|
||||
void ScummEngine::setScrollBuffer() {
|
||||
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->pitch);
|
||||
memcpy(_scrollBuffer, vs->getPixels(0, 0), vs->h * vs->pitch);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform a transition effect. There are four different effects possible:
|
||||
* 0: Iris effect
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue