aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2004-09-25 17:50:42 +0000
committerMax Horn2004-09-25 17:50:42 +0000
commit3211239a7d7d1422e9d58d79b056b4d81f60763e (patch)
tree583a3e94c43cea124c20b8c90ecca25ff0c80610 /scumm
parenta7406555d802ac2230503f76586b7606306580c5 (diff)
downloadscummvm-rg350-3211239a7d7d1422e9d58d79b056b4d81f60763e.tar.gz
scummvm-rg350-3211239a7d7d1422e9d58d79b056b4d81f60763e.tar.bz2
scummvm-rg350-3211239a7d7d1422e9d58d79b056b4d81f60763e.zip
cleanup
svn-id: r15273
Diffstat (limited to 'scumm')
-rw-r--r--scumm/gfx.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index 93150c279d..12c90c9596 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -1393,7 +1393,7 @@ void Gdi::drawBMAPBg(const byte *ptr, VirtScreen *vs, int startstrip, int width)
drawStripHE((byte *)vs->backBuf, width, bmap_ptr, vs->w, vs->h, false);
}
- copyVirtScreenBuffers(Common::Rect(0, 0, vs->w - 1, vs->h - 1));
+ copyVirtScreenBuffers(Common::Rect(vs->w, vs->h));
if (_numZBuffer <= 1)
return;
@@ -1447,6 +1447,11 @@ void Gdi::drawBMAPObject(const byte *ptr, VirtScreen *vs, int obj, int x, int y,
rect1.right -= rect2.left;
rect1.top -= rect2.top;
rect1.bottom -= rect2.top;
+
+ // FIXME: The following two duplicate the old behaviour of this code
+ // but I am not sure that this was right to start with... ?
+ rect1.right++;
+ rect1.bottom++;
copyVirtScreenBuffers(rect1);
}
@@ -1723,8 +1728,8 @@ dec_next:
}
void Gdi::copyVirtScreenBuffers(const Common::Rect &rect) {
- int rw = rect.right - rect.left + 1;
- int rh = rect.bottom - rect.top + 1;
+ int rw = rect.right - rect.left;
+ int rh = rect.bottom - rect.top;
byte *src, *dst;
src = _vm->virtscr[0].getBackPixels(rect.left, rect.top);