aboutsummaryrefslogtreecommitdiff
path: root/scumm/gfx.cpp
diff options
context:
space:
mode:
authorPaweł Kołodziejski2002-11-05 07:15:31 +0000
committerPaweł Kołodziejski2002-11-05 07:15:31 +0000
commiteba9b073a4d8c124efa23d8b961b2bc66a5e87c4 (patch)
tree2991590e833a9ea828a39691674d3da901268645 /scumm/gfx.cpp
parentde431c04a4176d3a31f0238d114a3af5847b9623 (diff)
downloadscummvm-rg350-eba9b073a4d8c124efa23d8b961b2bc66a5e87c4.tar.gz
scummvm-rg350-eba9b073a4d8c124efa23d8b961b2bc66a5e87c4.tar.bz2
scummvm-rg350-eba9b073a4d8c124efa23d8b961b2bc66a5e87c4.zip
this fix nexus problem
svn-id: r5410
Diffstat (limited to 'scumm/gfx.cpp')
-rw-r--r--scumm/gfx.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index d77b26f1aa..6fd4e44b1e 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -422,13 +422,13 @@ void Scumm::initBGBuffers(int height)
assert(gdi._numZBuffer >= 1 && gdi._numZBuffer <= 5);
if (_features & GF_AFTER_V7)
- itemsize = (virtscr[0].height + 4) * gdi._numStrips;
+ itemsize = _scrHeight * gdi._numStrips + gdi._numStrips * 10;
else
itemsize = (_scrHeight + 4) * gdi._numStrips;
size = itemsize * gdi._numZBuffer;
- createResource(rtBuffer, 9, size);
+ memset(createResource(rtBuffer, 9, size), 0, size);
for (i = 0; i < 4; i++)
gdi._imgBufOffs[i] = i * itemsize;
@@ -1227,11 +1227,6 @@ void Gdi::decompressMaskImg()
int height = _numLinesToProcess;
byte b, c;
- if ((_vm->_gameId == GID_DIG) && (_vm->_currentRoom == 23))
- height--;
- // FIXME: This seems to fix The Dig nexus wrapping corrupting memory..
- // and doesn't break any other games.. but is it correct? If so,
- // do we need to mirror this change anywhere else?
while (1) {
b = *src++;