diff options
author | Bertrand Augereau | 2011-09-04 12:44:05 +0200 |
---|---|---|
committer | Bertrand Augereau | 2011-09-04 12:55:04 +0200 |
commit | 529cd5bf959490abcc39366e06309a6aa838fe9d (patch) | |
tree | 0644b639fb873132536f926b1c292975e2da2071 /engines/dreamweb/stubs.cpp | |
parent | 8261b56313655c5b6ff2df92e4ddd1299d3aba88 (diff) | |
download | scummvm-rg350-529cd5bf959490abcc39366e06309a6aa838fe9d.tar.gz scummvm-rg350-529cd5bf959490abcc39366e06309a6aa838fe9d.tar.bz2 scummvm-rg350-529cd5bf959490abcc39366e06309a6aa838fe9d.zip |
DREAMWEB: 'sortoutmap' ported to C++
Diffstat (limited to 'engines/dreamweb/stubs.cpp')
-rw-r--r-- | engines/dreamweb/stubs.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index 7f8a511cde..93688bf643 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -1882,5 +1882,15 @@ void DreamGenContext::zoomonoff() { worktoscreenm(); } +void DreamGenContext::sortoutmap() { + const uint8 *src = (const uint8 *)segRef(data.word(kWorkspace)).ptr(0, 0); + uint8 *dst = (uint8 *)segRef(data.word(kMapdata)).ptr(0, 0); + for (uint16 y = 0; y < kMaplength; ++y) { + memcpy(dst, src, kMapwidth); + dst += kMapwidth; + src += 132; + } +} + } /*namespace dreamgen */ |