diff options
author | Bertrand Augereau | 2011-07-23 19:24:35 +0200 |
---|---|---|
committer | Bertrand Augereau | 2011-07-23 19:24:59 +0200 |
commit | a58e2bea08e1409f918a8462ea8e56ffb7b8903a (patch) | |
tree | a3bcd6a538e6f5e0eea5b30f04fc5a610c005f11 /engines | |
parent | 0066e4007a910a2f581018cc0b3a9fda94e41112 (diff) | |
download | scummvm-rg350-a58e2bea08e1409f918a8462ea8e56ffb7b8903a.tar.gz scummvm-rg350-a58e2bea08e1409f918a8462ea8e56ffb7b8903a.tar.bz2 scummvm-rg350-a58e2bea08e1409f918a8462ea8e56ffb7b8903a.zip |
DREAMWEB: 'multiput' and 'multiget' get signatures
Diffstat (limited to 'engines')
-rw-r--r-- | engines/dreamweb/stubs.cpp | 12 | ||||
-rw-r--r-- | engines/dreamweb/stubs.h | 2 |
2 files changed, 10 insertions, 4 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index 72d0994657..c7ee257dbb 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -36,8 +36,10 @@ Common::String getFilename(Context &context) { } void DreamGenContext::multiget() { - unsigned w = (uint8)cl, h = (uint8)ch; - unsigned x = (uint16)di, y = (uint16)bx; + multiget(di, bx, cl, ch); +} + +void DreamGenContext::multiget(uint16 x, uint16 y, uint8 w, uint8 h) { unsigned src = x + y * kScreenwidth; unsigned dst = (uint16)si; es = ds; @@ -58,8 +60,10 @@ void DreamGenContext::multiget() { } void DreamGenContext::multiput() { - unsigned w = (uint8)cl, h = (uint8)ch; - unsigned x = (uint16)di, y = (uint16)bx; + multiput(di, bx, cl, ch); +} + +void DreamGenContext::multiput(uint16 x, uint16 y, uint8 w, uint8 h) { unsigned src = (uint16)si; unsigned dst = x + y * kScreenwidth; es = data.word(kWorkspace); diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h index 64bcd2259c..0c0ff113c9 100644 --- a/engines/dreamweb/stubs.h +++ b/engines/dreamweb/stubs.h @@ -28,6 +28,7 @@ void frameoutfx(uint8 *dst, const uint8 *src, uint16 pitch, uint16 width, uint16 height, uint16 x, uint16 y); void worktoscreen(); void multiget(); + void multiget(uint16 x, uint16 y, uint8 width, uint8 height); void convertkey(); void cls(); void printsprites(); @@ -57,6 +58,7 @@ void showframe(uint16 dst, uint16 src, uint16 x, uint16 y, uint8 frameNumber, uint8 effectsFlag, uint8 *width, uint8 *height); void printasprite(const Sprite *sprite); void width160(); + void multiput(uint16 x, uint16 y, uint8 width, uint8 height); void multiput(); void eraseoldobs(); void clearsprites(); |