aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrand Augereau2011-07-20 21:58:14 +0200
committerBertrand Augereau2011-07-23 18:23:39 +0200
commit3d518d3d2c16e8b5b2a15978f967572b11aac861 (patch)
tree4498f050b8cb296d91fbb25a49a689f4e743df41
parent8a5c2f9dc307e3338ac1e8e379517bcf85139db8 (diff)
downloadscummvm-rg350-3d518d3d2c16e8b5b2a15978f967572b11aac861.tar.gz
scummvm-rg350-3d518d3d2c16e8b5b2a15978f967572b11aac861.tar.bz2
scummvm-rg350-3d518d3d2c16e8b5b2a15978f967572b11aac861.zip
DREAMWEB: Cleaning of 'printasprite'
-rw-r--r--engines/dreamweb/stubs.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index 36fda90fb6..8eeece4edd 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -1021,10 +1021,15 @@ void DreamGenContext::printasprite(const Sprite *sprite) {
di = ax + data.word(kMapadx);
}
- ax = sprite->b15;
+ uint8 c;
if (sprite->b29 != 0)
- ah = 8;
- showframe();
+ c = 8;
+ else
+ c = 0;
+ uint8 width, height;
+ showframe(es, ds, di, bx, sprite->b15, c, &width, &height);
+ cl = width;
+ ch = height;
bx = pop();
es = pop();