diff options
author | Max Horn | 2004-01-05 00:03:18 +0000 |
---|---|---|
committer | Max Horn | 2004-01-05 00:03:18 +0000 |
commit | 181bb0baa521066ef2a896e22083ede5a63ff8bb (patch) | |
tree | cd7b1b177be9783f304600193a9bd2a835aea225 /scumm | |
parent | 143b5bea80762464b4d29040b101ec606703a73f (diff) | |
download | scummvm-rg350-181bb0baa521066ef2a896e22083ede5a63ff8bb.tar.gz scummvm-rg350-181bb0baa521066ef2a896e22083ede5a63ff8bb.tar.bz2 scummvm-rg350-181bb0baa521066ef2a896e22083ede5a63ff8bb.zip |
fix bug #870433 (DIG: Scrolling regression with the lander game)
svn-id: r12148
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/gfx.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index bbbdad8360..433c43034a 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -430,6 +430,13 @@ void ScummEngine::initBGBuffers(int height) { int size, itemsize, i; byte *room; + if (_version >= 7) { + // Resize main virtual screen in V7 games. This is necessary + // because in V7, rooms may be higher than one screen, so we have + // to accomodate for that. + initVirtScreen(kMainVirtScreen, 0, virtscr[0].topline, _screenWidth, height, 1, 1); + } + room = getResourceAddress(rtRoom, _roomResource); if (_version <= 3) { gdi._numZBuffer = 2; |