diff options
author | Bertrand Augereau | 2011-08-21 15:57:13 +0200 |
---|---|---|
committer | Bertrand Augereau | 2011-08-21 15:57:39 +0200 |
commit | cfef8111da7f70bf676874dde8f529f673cbbc54 (patch) | |
tree | ca9a9ef42dacac8bbe151e9936fdd0a6875adffb | |
parent | f705a9b2865a3379b3423c7cc929086eee17a4f1 (diff) | |
download | scummvm-rg350-cfef8111da7f70bf676874dde8f529f673cbbc54.tar.gz scummvm-rg350-cfef8111da7f70bf676874dde8f529f673cbbc54.tar.bz2 scummvm-rg350-cfef8111da7f70bf676874dde8f529f673cbbc54.zip |
DREAMWEB: 'calcfrframe' returns (width,height) in (cl,ch)
-rw-r--r-- | engines/dreamweb/backdrop.cpp | 9 | ||||
-rw-r--r-- | engines/dreamweb/stubs.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/engines/dreamweb/backdrop.cpp b/engines/dreamweb/backdrop.cpp index e1800bafc0..83e1b13d03 100644 --- a/engines/dreamweb/backdrop.cpp +++ b/engines/dreamweb/backdrop.cpp @@ -111,12 +111,21 @@ uint8 DreamGenContext::getmapad(const uint8 *setData) { } void DreamGenContext::calcfrframe() { + uint8 width, height; + calcfrframe(&width, &height); + cl = width; + ch = height; +} + +void DreamGenContext::calcfrframe(uint8* width, uint8* height) { const Frame *frame = (const Frame *)segRef(data.word(kFrsegment)).ptr(data.word(kCurrentframe) * sizeof(Frame), sizeof(Frame)); data.word(kSavesource) = data.word(kFramesad) + frame->ptr(); data.byte(kSavesize+0) = frame->width; data.byte(kSavesize+1) = frame->height; data.word(kOffsetx) = frame->x; data.word(kOffsety) = frame->y; + *width = frame->width; + *height = frame->height; } void DreamGenContext::finalframe() { diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h index 61a65a3a80..fd2a83ef75 100644 --- a/engines/dreamweb/stubs.h +++ b/engines/dreamweb/stubs.h @@ -142,6 +142,7 @@ uint8 getxad(const uint8 *setData, uint8 *result); uint8 getyad(const uint8 *setData, uint8 *result); void calcfrframe(); + void calcfrframe(uint8* width, uint8* height); void finalframe(); void finalframe(uint16 *x, uint16 *y); void showallobs(); |