aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Kołodziejski2002-10-13 11:28:39 +0000
committerPaweł Kołodziejski2002-10-13 11:28:39 +0000
commitf5d2dd45f6cbf1841c83e51f2d1644c362495099 (patch)
tree1b62ee2319eecf246437006b903c19ca395ad919
parent2255b212ed0cd5615826170358b771ddd019d979 (diff)
downloadscummvm-rg350-f5d2dd45f6cbf1841c83e51f2d1644c362495099.tar.gz
scummvm-rg350-f5d2dd45f6cbf1841c83e51f2d1644c362495099.tar.bz2
scummvm-rg350-f5d2dd45f6cbf1841c83e51f2d1644c362495099.zip
fixed crash after load some savegames - proper height initialisation
svn-id: r5137
-rw-r--r--scumm/gfx.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index ed341641f2..a51be8a668 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -89,6 +89,11 @@ void Scumm::initVirtScreen(int slot, int number, int top, int width, int height,
assert(height >= 0);
assert(slot >= 0 && slot < 4);
+ if (_gameId == GID_DIG) {
+ if ((!slot) && (_scrHeight != 0))
+ height = _scrHeight;
+ }
+
vs->number = slot;
vs->unk1 = 0;
vs->width = _realWidth;