aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Menshakov2011-06-10 11:59:27 +0400
committerAlyssa Milburn2011-06-15 17:34:00 +0200
commit9109f36c042518ab78c1085ce8794e8aa3e4e87b (patch)
tree08abd5193b4fd6d62139dd7abc1b1674f2cb3ed9
parent5c629e3849a8ca97adfd077284ffd224a0c879c3 (diff)
downloadscummvm-rg350-9109f36c042518ab78c1085ce8794e8aa3e4e87b.tar.gz
scummvm-rg350-9109f36c042518ab78c1085ce8794e8aa3e4e87b.tar.bz2
scummvm-rg350-9109f36c042518ab78c1085ce8794e8aa3e4e87b.zip
DREAMWEB: fixed typo in multidump
-rw-r--r--engines/dreamweb/dreamweb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp
index 249e80cfb5..98efb3b85d 100644
--- a/engines/dreamweb/dreamweb.cpp
+++ b/engines/dreamweb/dreamweb.cpp
@@ -295,7 +295,7 @@ void multidump(Context &context) {
//debug(1, "multidump %ux%u -> segment: %04x->%04x", w, h, (uint16)context.ds, (uint16)context.es);
unsigned pitch = (uint16)context.data.word(kScreenwidth);
unsigned offset = (uint16)context.di + (uint16)context.bx * pitch;
- for(unsigned y = 0; y < h; ++y, offset += pitch * y) {
+ for(unsigned y = 0; y < h; ++y, offset += pitch) {
uint8 *src_p = context.ds.ptr(offset, w);
uint8 *dst_p = context.es.ptr(offset, w);
memcpy(dst_p, src_p, w);